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

在实体类的时间字段上加上这个注解即可

相关文章: