1、改 idea 目录 bin 文件夹下的文件
idea.exe.vmoptions 末尾添加 -Dfile.encoding=UTF-8
idea64.exe.vmoptions 末尾添加 -Dfile.encoding=UTF-8
2、改 idea 里 Settings 的 File encodings 下均为 UTF-8
3、改 Help 下 Edit Costom VM Options…
末尾添加 -Dfile.encoding=UTF-8
4、改 idea 里 Tomcat 下 Edit Configurations
改 Server 的 VM Options 为 -Dfile.encoding=UTF-8
在 Startup/Connection 下添加
Name: JAVA_TOOK_OPTION
Value : -Dfile.encoding=UTF-8
5、改 Settings 的 Maven 下 Runner 的 VM Options 为 -Dfile.encoding=UTF-8
6、改 Tomcat 目录下 conf 文件夹的文件
logging.properties 改每一行后面的 GBK 为 UTF-8