上篇解决了proxyStreamAllowList找不到问题,然后又出了个404问题
问题解决:
1.检查消费者启动类是否加 @EnableHystrix 注解
2.是否引入监控相关的jar包
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>com.netflix.hystrix</groupId>
<artifactId>hystrix-core</artifactId>
<version>1.5.18</version>
</dependency>
上面2步都完成了,再检查下配置文件是否配置
management.endpoints.web.exposure.include=hystrix.stream