【SpringMVC】Jackson解决乱码问题配置
2021-03-03 04:28
标签:frame spring tpm ram prope obj span ons efault 【SpringMVC】Jackson解决乱码问题配置 标签:frame spring tpm ram prope obj span ons efault 原文地址:https://www.cnblogs.com/AirCL/p/14398677.html
mvc:annotation-driven>
mvc:message-converters register-defaults="true">
bean class="org.springframework.http.converter.StringHttpMessageConverter">
constructor-arg value="UTF-8"/>
bean>
bean class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter">
property name="objectMapper">
bean class="org.springframework.http.converter.json.Jackson2ObjectMapperFactoryBean">
property name="failOnEmptyBeans" value="false"/>
bean>
property>
bean>
mvc:message-converters>
mvc:annotation-driven>
文章标题:【SpringMVC】Jackson解决乱码问题配置
文章链接:http://soscw.com/index.php/essay/59353.html