【SpringMVC】Jackson解决乱码问题配置

2021-03-03 04:28

阅读:578

标签:frame   spring   tpm   ram   prope   obj   span   ons   efault   

    
    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解决乱码问题配置

标签:frame   spring   tpm   ram   prope   obj   span   ons   efault   

原文地址:https://www.cnblogs.com/AirCL/p/14398677.html


评论


亲,登录后才可以留言!