终极解决方案:
1、File-settings-Editor-File Encodings-Global Encodings设置为UTF-8
2、File-settings-Editor-File Encodings-Project Encodings设置为UTF-8
3、File-settings-Build,Execution,Deployment-Compiler-Java Compiler-Additional command line parameters设置为-encoding utf-8
4、安装目录\bin,找到两个文件
idea64.exe.vmoptions 和 idea.exe.vmoptions
分别在文件最下面加上-Dfile.encoding=UTF-8
5、Run-Edit Configurations-Application-VM options设置为-Dfile.encoding=UTF-8
完成以上操作,重启IDEA,重启项目,成功!