SPRINGMVC's @responsebody annotations can convert the object returned by the request method directly to a JSON object, but when the return value is string, Chinese is garbled because the string conversion and the object conversion use two converters. and string Converter fixed in the conversion code "ISO-8859-1", the network is also a variety of solutions, there is through the configuration bean encoding, also has its own rewrite converter, I have tried many times here, can only solve their own.
The first type: Add produces= "Text/html;charset=utf-8 in @requestmapping
Second: In the MVC configuration, the spring version must be 3.1 or later to be configured
<mvc:annotation-driven>
<mvc:message-converters register-defaults= "true" >
<bean class= "Org.springframework.http.converter.StringHttpMessageConverter" >
<constructor-arg value= "UTF-8"/>
</bean>
</mvc:message-converters>
</mvc:annotation-driven>
SPRINGMVC return Chinese character garbled problem