一、 配置(可以单独部署应用)
1、 加入依赖
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-hystrix-dashboard</artifactId>
</dependency
2、 添加注解
@EnableHystrixDashboard
二、 演示
访问:http://localhost:8761/hystrix
加入:http://localhost:8888/hystrix.stream
访问:
http://localhost:8888/user/1
http://localhost:8888/feign/user/1