所用版本
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.6.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<spring-cloud.version>Finchley.SR2</spring-cloud.version>
</properties>
然后在 hystrix-dashboard 是这样的
访问 http://localhost:9901/actuator/hystrix.stream 后台报错404
百度了一下 , 那些方式都解决不了
发现项目并没有引入 actuator
引入
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency>
即可搞定
下面是那些网友给的配置方式,已过时
#management:
# context-path: / # 这样 查看 hystrix 控制面板就访问没有错了, locahost:8081/hystrix
# endpoint:
# web:
# exposure:
# include: '*'
# hystrix:
# stream:
# enabled: true