十五、断路器-Hystrix Dashboard 的使用

一、 配置(可以单独部署应用)
1、 加入依赖

<dependency> 
  <groupId>org.springframework.cloudgroupId> 
  <artifactId>spring-cloud-starter-hystrix-dashboardartifactId>  
dependency

2、 添加注解

@EnableHystrixDashboard 

二、 演示
访问:http://localhost:8761/hystrix

加入:http://localhost:8888/hystrix.stream

访问:
http://localhost:8888/user/1
http://localhost:8888/feign/user/1

你可能感兴趣的:(Spring,Cloud)