Garbled characters are received when the spring+rest parameter is passed into Chinese

When doing the interface through spring+rest, it is found that when the parameter passed in from the current station is Chinese, the received parameter shows garbled characters!

Add  URIEncoding="UTF-8" to the tomcat/conf/server.xml file  

as follows:

 <Connector port="8099" protocol="HTTP/1.1"

               connectionTimeout="20000"

               redirectPort="8443"  URIEncoding="UTF-8"/>

Guess you like

Origin blog.csdn.net/jia_dojo/article/details/84744142