1.修改代码编码
2.请在 HELP->Edit Custom VM OPtions中加 -Dfile.encoding=utf-8 然后重启IDEA 这个方法好使
最后一行 输入 -Dfile.encoding=UTF-8