场景:
请求发送接口,报如下异常信息
org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize instance of `java.lang.String` out of START_OBJECT token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.lang.String` out of START_OBJECT token
Cannot deserialize instance of `java.lang.String` out of START_OBJECT token
分析:
1、入参值类型与入参要求的类型不一致
2、如果是入参是集合类型,入参值类型与入参要求的泛型类型不一致