在实体类中的Date接收数据库中的时间的 字段 上添加注解
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
mysql时间差8小时
原文:https://www.cnblogs.com/zagwk/p/13433693.html