引入依賴
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
測試
http://localhost:8080/actuator/health

配置
management.endpoints.web.exposure.include=*
檢查beans
http://localhost:8080/actuator/beans
在sts中查看

打開后結構

