在使用springboot 2.1.1和springcloud的服務監控hystrixDashboard的時候,http://localhost:9001/actuator/hystrix.stream 一直報錯404, 查看官方文檔的時候,發現springboot2.x使用了endpoint,需要在被監控的微服務裏面添加bootstrap.yml配置,內容如下
management:
endpoints:
web:
exposure:
include: '*'