码迷,mamicode.com
首页 > 编程语言 > 详细

org.springframework.http.converter.HttpMessageNotReadableException

时间:2019-12-23 22:21:54      阅读:93      评论:0      收藏:0      [点我收藏+]

标签: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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!