【全栈之路】微服务课程14_Hystrix之监控
文章目录
新增配置
management:
endpoints:
web:
exposure:
include: 'hystrix.stream'
新增依赖
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-hystrix-dashboard</artifactId>
</dependency>
启动增加注解
@EnableHystrixDashboard
测试访问
http://localhost:8010/hystrix/
http://localhost:8010/actuator/hystrix.stream
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论