只有在实体类属性上加入这个才可以转化。 @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
使用这个注解时不会有任何作用的,后端时无法把日期转化的。天坑啊
@DateTimeFormat(pattern="yyy-MM-dd HH:mm:ss")
只有在实体类属性上加入这个才可以转化。 @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
使用这个注解时不会有任何作用的,后端时无法把日期转化的。天坑啊
@DateTimeFormat(pattern="yyy-MM-dd HH:mm:ss")