一、问题 二、解决方法 在idea中找到File->Settings->Build,Execution,Deployment->Build Tools->Maven->Runner,在VM Options上配置-Dfile.encoding=GBK