关于feign接口返回参数错误的异常
org.springframework.web.client.RestClientException: Could not extract respon
原因:feign接口不能直接返回字符串,需要返回对象
正确代码:
public Object get() {
HashMap<String, String> map = new HashMap<>();
map.put("code","hello");
return map;
}
错误代码
public Object get() {
return "map";
}