1. 微服务架构—服务降级(介绍)
2. Spring Cloud Feign(第四篇)之Fallback (代码实现)
3. Feign对非2xx返回码都认为异常的问题
解决: 加上decode404 = true
@FeignClient(name = “marathon-lb”, fallbackFactory= FooBarClientFallback.class, decode404 = true
)
@RequestMapping(value = “/foo/bar”)
public interface FooBarClient {
… …
}
Spring Cloud Feign 之 Fallback
最新推荐文章于 2024-07-22 17:54:26 发布