默认情况下tomcat设置的编码方式是:iso8859-1
修改tomcat下conf/server.xml
找到如下代码<Connector port="8080" protocol='HTTP/1.1' "connection Timeout=20000" redirectPort="8443"/>
修改成:<Connector port="8080" protocol='HTTP/1.1' "connection Timeout=20000" redirectPort="8443" URIEncoding="UTF-8"/>