1.打开Tomcat目录文件下方的conf, 编辑logging.properties, 查找全部utf-8改为GBK
2.打开Tomcat目录文件下方的conf, 编辑server.xml, 查找8080, 将该字段行修改为
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8"/>
或者在"8443" 后添加 URIEncoding="UTF-8
3.打开IDEA, 选择Setting, 搜索encoding, 将所有字符编码格式改为UTF-8
4.在IDEA程序目录下打开bin, 编辑 idea64.exe.vmoptions, 在末行添加-Dfile.encoding=UTF-8