mysql时间差8小时

190 阅读1分钟

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

@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")