(1)引入
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
springboot 默认的端点只开放 health、info
(2)设置开启全部端点,展示详细信息
management.endpoints.web.exposure.include=*
management.endpoint.health.show-details=always
输入:http://localhost:8080/actuator
效果:
输入:http://localhost:8080/actuator/beans
效果:
标题:SoringBoot(2.*)版本 actuator使用
作者:hymn
地址:https://dxyhymn.com/articles/2020/08/21/1597979575189.html