修改配置
定位到IDEA的安装目录下的bin文件夹

Paste_Image.png
修改图中的两个文件,在末尾加上
-Dfile.encoding=UTF-8
Tomcat运行时的VM options
在输入框中加入代码
-Dfile.encoding=UTF-8

Paste_Image.png
定位到IDEA的安装目录下的bin文件夹
修改图中的两个文件,在末尾加上
-Dfile.encoding=UTF-8
在输入框中加入代码
-Dfile.encoding=UTF-8