@DatetimeFormat是将String转换成Date,一般前台给后台传值时用
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat将Date转换成String 一般后台传值给前台时用
@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")