1.启动类是否加了
@EnableHystrix 注解
2.包是否引入
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-hystrix</artifactId> </dependency> <dependency> <groupId>com.netflix.hystrix</groupId> <artifactId>hystrix-core</artifactId> <version>1.5.18</version> </dependency> <!--Hystrix 监控--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency>
以上完成后依然404问题,很大概率就是yml 配置问题,加上以下配置,启动
management: endpoints: web: exposure: include: hystrix.stream