[Hystrix]2.解決SpringCloud訪問http://localhost:7811/actuator/health無法顯示斷路器信息無法顯示

解決SpringCloud斷路器開啓狀態信息不顯示問題

  1. 首先需要引入actuator依賴
	<!--監控中心-->
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-actuator</artifactId>
		</dependency>
  1. 然後引入修改全局配置文件配置:
management:
  endpoint:
      health:
        show-details: always

訪問http://localhost:7811/actuator/health就可以看到斷路器的關閉和開啓狀態了

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