Could not extract response: no suitable HttpMessageConverter found for response type [xxx] and content type [text/plain;charset=utf-8]
背景
使用openfeign和第三方接口进行联调时,接口出现上述异常
原因
第三方未按接口文档要求格式返回json格式,返回的请求头content-type是text/plain,导致无法解析返回请求。
解决方法
要求第三方按接口文档格式返回content-type是application/json的json格式