1.在runner中添加 -Dfile.encoding=GBK 2.点击apply 3.在Help->Edit Custom VM Options中添加 -Dfile.encoding=UTF-8 4.ctrl+s保存,重新运行项目