IDEA 编码格式设置 UTF-8
1.文件编码设置为UTF-8
Editor > File Encodings
2.编译编码设置为utf-8
Build,Execution,Deployment > Complier > Java Complier
按图中设置:-encoding utf-8
Editor > File Encodings
Build,Execution,Deployment > Complier > Java Complier
按图中设置:-encoding utf-8