背景:

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

 

 

GitHub 加速计划 / js / json
41.72 K
6.61 K
下载
适用于现代 C++ 的 JSON。
最近提交(Master分支:1 个月前 )
960b763e 2 个月前
8c391e04 5 个月前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐