1、引入依赖
java
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
2、开启配置
java
management.endpoints.web.exposure.include=*
3、启动项目,查看监控数据
localhost:8080/actuator :查看可监控的数据

localhost:8088/actuator/beans :查看程序中所有的bean

localhost:8088/actuator/health :查看健康状态


