1.@JsonFormat(pattern=“yyyy-MM-dd HH:mm:ss”,timezone = “GMT+8”) pattern:需要转换的时间日期的格式 timezone:是时间设置为东八区
2.@DateTimeFormat(pattern = “yyyy-MM-dd HH:mm:ss”) pattern:需要转换的时间日期的格式