1.在IDEA的File里面打开Settings。maven
2.找到Runner,在VM Options输入-DarchetypeCatalog=internal -Dfile.encoding=GBK,就能够解决maven编译、打包时中文乱码的问题。编码