在启动jar的时候添加一个配置 -Dfile.encoding=utf-8 java -Dfile.encoding=utf-8 -jar xxxxtest-0.1.jar 转载于:https://www.cnblogs.com/syscn/p/9774120.html