1、打开tomcat的目录中的/conf/server.xml,找到Connector标签,添加URIEncoding="UTF-8"
<Connector connectionTimeout="20000"
port="8080" protocol="HTTP/1.1"
redirectPort="8443" URIEncoding="UTF-8"/>
2.打开tomcat目录中的\conf\logging.properties,编码格式改为GBK
1、打开tomcat的目录中的/conf/server.xml,找到Connector标签,添加URIEncoding="UTF-8"
<Connector connectionTimeout="20000"
port="8080" protocol="HTTP/1.1"
redirectPort="8443" URIEncoding="UTF-8"/>
2.打开tomcat目录中的\conf\logging.properties,编码格式改为GBK