In the PRINGMVC by setting @responsebody return JSON garbled problem, this problem on the internet for a long time, found that the answer is really conform to my solution:
Solution One: Import required
Jackson-core-asl-1.9.11.jar
Jackson-mapper-asl-1.9.11.jar
The purpose of the package is to set the format of the returned JSON
<bean class= "Org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter" ><property Name= "Messageconverters" ><list><bean class= " Org.springframework.http.converter.json.MappingJacksonHttpMessageConverter "/></list></property> </bean>
Solution Two: This method does not need to import additional packages in the SPRINGMVC runtime environment, only needs to configure the MVC namespace.
<mvc:annotation-driven><mvc:message-converters register-defaults= "true" ><bean class= " Org.springframework.http.converter.StringHttpMessageConverter "><property name=" Supportedmediatypes "value= "Text/html;charset=utf-8"/></bean></mvc:message-converters></mvc:annotation-driven>
Fix SPRINGMVC return JSON Chinese garbled