[Reserved] Java back-end receives the URL request Chinese characters garbled

When using tomcat server, if needed to support the Chinese in the url parameter, you need to configure tomcat. Configuration is as follows:

1, open configuration file
open server.xml tomcat installation directory under the directory conf profile;

2, modify the configuration
to find a place as follows:

<Connector port="8080" protocol="HTTP/1.1"
           connectionTimeout="20000"
           redirectPort="8443" />

New wherein follows:
URIEconding = "UTF-. 8"
useBodyEncodingForURI = "to true"

Modified as follows:

Original: https://blog.csdn.net/smilefyx/article/details/70918025

Guess you like

Origin blog.csdn.net/qq_21852449/article/details/84262300