异常信息如下
_Could not extract response: no suitable HttpMessageConverter found for response type [java.util.List<java.util.Ma
p<java.lang.String, java.lang.Object>>] and content type [application/xml;charset=UTF-8]
feign.codec.DecodeException: Could not extract response: no suitable HttpMessageConverter found for response type [java.util.List<java.util.Map<java.lang.String, java.lang.Object>>] and content typ
e [application/xml;charset=UTF-8]
原因
服务提供者返回值为xml调用服务者没有对应的HttpMessageConverter
解决方案
// feign api 中设置 produces = "application/json;charset=utf-8"
@GetMapping(value = "/path", produces = "application/json;charset=utf-8")