Cannot deserialize value of type `java.lang.Integer` from Object value (token `JsonToken.START_OBJEC

àì夳堔傛蜴生んèń 2023-09-30 23:28 146阅读 0赞

错误信息: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为空,导致报错。
在这里插入图片描述
解决方法:去掉空值即可。

发表评论

表情:
评论列表 (有 0 条评论,146人围观)

还没有评论,来说两句吧...

相关阅读