解决方法1:
全局搜索源码:
getBytes(Charset.defaultCharset())
替换为
getBytes(StandardCharsets.UTF_8)
解决方法2:
启动方式:Java -Dfile.encoding=UTF-8 -jar xxxx.jar
版权声明:本文为itdragons原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
全局搜索源码:
getBytes(Charset.defaultCharset())
替换为
getBytes(StandardCharsets.UTF_8)
启动方式:Java -Dfile.encoding=UTF-8 -jar xxxx.jar