Cannot deserialize value of type `java.lang.Integer` from Object value (token `JsonToken.START
•
Jave
错误信息: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.net2asp.com/3bbb27bef2.html
