错误问题

org.springframework.web.client.RestClientException: Error while extracting response for type [com.feihe.member.account.common.response.Result] and content type [application/json]; nested exception is org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot construct instance of com.feihe.member.account.common.response.Result (although at least one Creator exists): cannot deserialize from Object value (no delegate- or property-based Creator); nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of com.feihe.member.account.common.response.Result (although at least one Creator exists): cannot deserialize from Object value (no delegate- or property-based Creator)

解决办法

feign.codec.DecodeException异常解决 - 图1

报该错的原因是 构造的Result对象没有 空的构造器

最终解决

feign.codec.DecodeException异常解决 - 图2

添加 @NoArgsConstructor 注解z产出