Failed to convert property value of type ’java.lang.String‘ to required type ‘java.util.Date’…
Failed to convert property value of type ’java.lang.String‘ to required type ‘java.util.Date’…问题描述在日期对应属性上添加注解,JsonFormat能有用,数据从前端传输到后端时,无法识别DateTimeFormat失效 @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")