qq_42445502 2018-11-01 09:20 采纳率: 0%
浏览 2289

SpringBoot添加时报错

Caused by: org.springframework.web.client.RestClientException: Error while extracting response for type [int] and content type [application/json;charset=UTF-8]; nested exception is org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize instance of int out of START_OBJECT token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of int out of START_OBJECT token

  • 写回答

2条回答

  • smay 2018-11-01 10:12
    关注

    使用Integer接收试下!最好贴一下源码,不然不好找错。看报错意思是反序列化问题

    评论

报告相同问题?