在修改小节数据保存时 时间格式不正确 报错如下:
Resolved [org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize value of type `java.util.Date` from String "2020-12-06T07:00:51.000+0000": expected format "yyyy-MM-dd HH:mm:ss"; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.util.Date` from String "2020-12-06T07:00:51.000+0000": expected format "yyyy-MM-dd HH:mm:ss"
at [Source: (PushbackInputStream); line: 1, column: 141] (through reference chain: com.course.server.dto.SectionDto["createdAt"])]
在dto检查 没有问题 创建时间和修改时间都有注解
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")