jar启动方式 在启动脚本-Duser.timezone=GMT+08添加该语句即可。 如果是tomcat启动 在bin/catalina.sh文件中添加 set -Duser.timezone=GMT+08 即可