引入依赖
<!--dashboard图形化界面-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-hystrix-dashboard</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
添加注解
@EnableHystrixDashboard
我用127.0.0.1:8081/hystrix访问的时候打不开网页,直接下载了一个hystrix的文件
但我用localhost:8081/hystrix/访问正确