Java代码在本地运行没有问题。上传到阿里云服务器后。出现了中文乱码解决

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

猜你喜欢

转载自www.cnblogs.com/Java-Starter/p/9249604.html