当前位置:   article > 正文

org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deseria_消息不能读取:json parse error: cannot deserialize value

消息不能读取:json parse error: cannot deserialize value of type `org.springb

org.springframework.http.converter.HttpMessageNotReadableException:

JSON parse error: Cannot deserialize value of type `java.util.Date` from String "NULL": not a valid representation

(error: Failed to parse Date value 'NULL': Unparseable date: "NULL");

nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.util.Date` from String "NULL": not a valid representation (error: Failed to parse Date value 'NULL': Unparseable date: "NULL")
 at [Source: (PushbackInputStream); line: 16, column: 14] (through reference chain: com.starsaiot.battery.entity.PledgeOrder["payTime"])

=====================================================

在前后端分离的项目里遇到了这个问题

前端输入的数据是 "payTime": "NULL",
"tradeNum": "null",
  "updateTime": "2021-08-17 16:39:50",
  "updated": "null",

控制台报这个错

====================================================

出错原因:payTime的类型不对,这个大写的NULL是我从数据库里复制的数据,每太注意就放进去了,应该要和下面的null保持一致。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/878233
推荐阅读
相关标签
  

闽ICP备14008679号