原因 jvm和linux系统使用的时区不同。springboot启动加一个启动参数就行了。 解决办法 启动时添加 -Duser.timezone=GMT+08 java -jar -Duser.timezone=GMT+08 xxx.jar