解決SpringCloud斷路器開啓狀態信息不顯示問題
- 首先需要引入actuator依賴
<!--監控中心-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
- 然後引入修改全局配置文件配置:
management:
endpoint:
health:
show-details: always
訪問http://localhost:7811/actuator/health就可以看到斷路器的關閉和開啓狀態了