办法很简单,在启动tomcat之前设置一个环境变量即可 $ export JAVA_OPTS="$JAVA_OPTS -Duser.timezone=Asia/Shangha" 重启之后,有没有发现已经好了呢