Springboot项目,编码为utf8 打包后,为了在控制台运行时不乱码,需要在控制台中依次执行以下命令: 第一步: chcp 65001 第二步: java -jar -Dfile.encoding=utf-8 你的.jar