解决HttpMessageNotReadableException: JSON parse error: Cannot deserialize value of type java.util.Date

背景:

Springboot项目,后台上传数据时报错。

问题:

org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize value of type `java.util.Date` from String "2019-09-06": not a valid representation (error: Failed to parse Date value '2019-09-06': Unparseable date: "2019-09-06"); nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.util.Date` from String "2019-09-06": not a valid representation (error: Failed to parse Date value '2019-09-06': Unparseable date: "2019-09-06")

解决HttpMessageNotReadableException: JSON parse error: Cannot deserialize value of type java.util.Date_第1张图片

解决HttpMessageNotReadableException: JSON parse error: Cannot deserialize value of type java.util.Date_第2张图片

 分析:

求的参数json格式不对

解决:

解决HttpMessageNotReadableException: JSON parse error: Cannot deserialize value of type java.util.Date_第3张图片

参考:

springboot在上传数据时报JSON parse error: Can not deserialize value of type java.util.Date from String

 

 

你可能感兴趣的:(Java,Spring,Boot)