Blog Content
springboot Feign请求失败异常feign.FeignException.errorExecuting
Java
2020-11-09 20:52:14
调用远程服务,报400错误,
解决:
1. 把注解@Controller改成@RestController;
2. 在指定的接口上加@Responsebody注解;
查看被调用方日志,报错:
Request header is too large
1. 调用方法由GetMapping改为PostMapping;
2. 参数改为@RequestBody List days
上一篇:elasticsearch宕机java_pid1.hprof file exist
下一篇:解决required a bean of type ‘XXX’ that could not be found.的问题