1、为什么要自己手动开启hystrix
https://github.com/spring-cloud/spring-cloud-netflix/issues/1277
2、启用HystrixCommand
<dependency>
<groupId>com.netflix.hystrix</groupId>
<artifactId>hystrix-javanica</artifactId>
<version>RELEASE</version>
</dependency>
3、启用熔断器@EnableCircuitBreaker
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-netflix-hystrix-dashboard</artifactId>
</dependency>
springcloud知识Part01
最新推荐文章于 2024-07-16 15:18:14 发布