1、雪崩效应:

2、Hystrix是什么?

3、什么是服务熔断?

4、引入相关依赖:
<!-- hystrix -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-hystrix</artifactId>
</dependency>
5、编写controller:
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org

最低0.47元/天 解锁文章
580

被折叠的 条评论
为什么被折叠?



