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

来源:互联网 发布:甲骨文 ibm做啥软件 编辑:程序博客网 时间:2024/06/11 08:06

一、 配置(可以单独部署应用)
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

阅读全文
0 0
原创粉丝点击