springboot 2.x版本 hystrix-dashboard 報錯

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

management:
  endpoints:
    web:
      exposure:
        include: '*'

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章