org.springframework.http.converter.HttpMessageNotReadableException

2021-09-28 18:14

阅读:610

标签:value   work   图片   ada   出错   null   字符串转换   not   ali   org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize value of type `java.util.Date` from String "2019-12-16 06:11:08": not a valid representation (error: Failed to parse Date value ‘2019-12-16 06:11:08‘: Cannot parse date "2019-12-16 06:11:08": while it seems to fit format ‘yyyy-MM-dd‘T‘HH:mm:ss.SSSZ‘, parsing fails (leniency? null)); 对于出现这样的错误,说明是字符串转换成日期对象出错,实体类中的日期字段设置指定日期格式化的格式 检查传递的参数的字符串日期格式是否是上面设置的格式org.springframework.http.converter.HttpMessageNotReadableException标签:value   work   图片   ada   出错   null   字符串转换   not   ali   原文地址:https://www.cnblogs.com/alonely/p/12088392.html


评论


亲,登录后才可以留言!