在idea中通过maven对项目进行编译时,控制台的报错中文乱码
解决:
.File -> Settings -> Build,Execution,Deployment -> Maven -> Runner,在VM Options中加入
-Dfile.encoding=GB2312
之前看的很多资料,都说要设置为
-Dfile.encoding=UTF-8
但是设置之后并没有生效。