tomcat 修改默认字符集
找到connector节点,插入
disableUploadTimeout="true" useBodyEncodingForURI="true" URIEncoding="UTF-8" 即可,如下
<Connector connectionTimeout="20000" port="80" protocol="HTTP/1.1" redirectPort="8443" disableUploadTimeout="true" useBodyEncodingForURI="true" URIEncoding="UTF-8"/>