当前位置:   article > 正文

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

cannot deserialize value of type `java.lang.string` from object value (token

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

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

闽ICP备14008679号