java 实体类中日期格式转换 @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") 在实体类的时间字段上加上这个注解即可