背景:
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")
分析:
求的参数json格式不对
解决:
参考:
springboot在上传数据时报JSON parse error: Can not deserialize value of type java.util.Date from String