age=12) [BodyClient#consumer1] ---> END HTTP (24-byte body) [BodyClient#consumer1] <--- HTTP/1.1 415 (121ms) [BodyClient#consumer1] connection: keep-alive [BodyClient#consumer
case 415: return new UnsupportedMediaType(message, request, body, headers); case 429: return new TooManyRequests(message, request, body, headers); case 422: return new UnprocessableEntity(message, request, body, headers); default: return new FeignClientException(status, message, request, body, ...
答案是按照@spencergibb建议的那样做;在FeignClient接口的@RequestMapping注释中使用consumes指令。这个Spring...