![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring cloud
Live in freedom
这个作者很懒,什么都没留下…
展开
-
Hystrix服务降级
1.服务提供方提供服务降级:a.主启动类使用@EnableCircuitBreaker开启降级b.方法上使用@Hystrix注解,如下图:2.服务调用放实现服务降级:a.yml配置文件添加配置 feign.hystrix.enable=trueb.启动类添加@EnableHystrixc.方法使用@HystrixCommand,入下图:3.使用实现类实现服务降级:a.yml配置文件添加配置 feign.hystrix.enable=trueb.OpenFeign中使用fallback添原创 2022-06-06 20:33:46 · 1065 阅读 · 0 评论 -
如何替换Ribbon默认的轮询算法
代码实现ribbon默认轮询算法替换原创 2022-05-31 18:09:18 · 204 阅读 · 0 评论