1.环境变量里增加 JAVA_TOOL_OPTIONS : -Dfile.encoding=UTF-8
2.tomcat/conf/sever.xml 文件修改:
<Connector port="8080" useBodyEncodingForURI="true" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
3.重启tomcat
1.环境变量里增加 JAVA_TOOL_OPTIONS : -Dfile.encoding=UTF-8
2.tomcat/conf/sever.xml 文件修改:
<Connector port="8080" useBodyEncodingForURI="true" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
3.重启tomcat