mysql时间差8小时

在实体类中的Date接收数据库中的时间的 字段 上添加注解

@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
原文地址:https://www.cnblogs.com/zagwk/p/13433693.html