首页 > 其他 > 详细

Dubbo 服务容错Hystrix

时间:2019-04-04 21:38:46      阅读:197      评论:0      收藏:0      [点我收藏+]

一、服务者

1.pom

        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>
                spring-cloud-starter-netflix-hystrix
            </artifactId>
        </dependency>                    

2.启动类添加 @EnableHystrix   开启服务容错

3.方法出现异常 @HystrixCommand

技术分享图片

二、消费者

1.pom

        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>
                spring-cloud-starter-netflix-hystrix
            </artifactId>
        </dependency>                    

2.启动类添加 @EnableHystrix   开启服务容错

3.方法出现异常 @HystrixCommand

技术分享图片

 

Dubbo 服务容错Hystrix

原文:https://www.cnblogs.com/mm163/p/10657142.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!