解决办法: 1.1.file–>settings 搜索Maven,修改下面选项为-Dfile.encoding=GBK,不要设置成GB2312 2.settings中搜索File Encodings,修改下面的选项的值为UTF-8 测试一下试试