标签:hystrix bsp boot loading api das frame man class
Hystrix监控问题:
pom.xml:
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-hystrix-dashboard</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
在controller上加上注解:
@SpringBootApplication
@EnableHystrixDashboard
启动后:访问 http://127.0.0.1:8030/hystrix.stream 没问题
监控某个服务时:一致出现loading
解决:1.手动访问监控的API
2.更换浏览器(google)
3.application.properties在配置中加入:management.endpoints.web.exposure.include="*"
标签:hystrix bsp boot loading api das frame man class
原文地址:https://www.cnblogs.com/CoderRdf/p/11599486.html