一, 在tomcat中找到conf/server.xml 加上URIEncoding="UTF-8"/ 工具栏中window->General->Workspace中Text file encoding 中选中Other:UTF-8
二,
-->
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8"/>
<!-- A "Connector" using the shared thread pool-->
<!--
<Connector executor="tomcatThreadPool"
port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8"/>
-->