Cannot deserialize value of type `java.lang.Integer` from Object value (token `JsonToken.START_OBJEC
错误信息:org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize value of type。出错原因:测试时 workStatus为空,导致报错。解决方法:去掉空值即可。
文章共90字 · 阅读需要大约1分钟
一键AI生成摘要,助你高效阅读
问答
·
错误信息:org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize value of type java.lang.Integer
from Object value (token JsonToken.START_OBJECT
); nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type java.lang.Integer
from Object value (token JsonToken.START_OBJECT
)
出错原因:测试时 workStatus为空,导致报错。
解决方法:去掉空值即可。
更多推荐
已为社区贡献1条内容
所有评论(0)