応答を抽出できませんでした:応答タイプに適したHttpMessageConverterが見つかりません



Could Not Extract Response



例外情報は次のとおりです

_Could not extract response: no suitable HttpMessageConverter found for response type [java.util.List] and content type [application/xmlcharset=UTF-8] feign.codec.DecodeException: Could not extract response: no suitable HttpMessageConverter found for response type [java.util.List] and content typ e [application/xmlcharset=UTF-8]

理由

  • サービスプロバイダーの戻り値はxmlです
  • 呼び出し元サーバーには、対応するHttpMessageConverterがありません

解決

// set in feign api produces = 'application / json charset = utf-8' @GetMapping(value = '/path', produces = 'application/jsoncharset=utf-8')