在运行jar包时加了一个 -Dfile.encoding=UTF-8 这句,就好了.

java -Dfile.encoding=UTF-8 -jar project.jar
Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐