错误信息: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为空,导致报错。
解决方法:去掉空值即可。文章来源地址https://www.toymoban.com/news/detail-529356.html
文章来源:https://www.toymoban.com/news/detail-529356.html
到了这里,关于Cannot deserialize value of type `java.lang.Integer` from Object value (token `JsonToken.START_OBJEC的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!