解决方法1: 全局搜索源码: getBytes(Charset.defaultCharset()) 替换为 getBytes(StandardCharsets.UTF_8) 解决方法2: 启动方式:Java -Dfile.encoding=UTF-8 -jar xxxx.jar