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

java -Dfile.encoding=UTF-8 -jar project.jar
原文地址:https://www.cnblogs.com/Java-Starter/p/9249604.html