引入maven依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
默认可用Endpoints
{
"_links": {
"self": {
"href": "http://127.0.0.1:8080/actuator",
"templated": false
},
"health-component": {
"href": "http://127.0.0.1:8080/actuator/health/{component}",
"templated": true
},
"health-component-instance": {
"href": "http://127.0.0.1:8080/actuator/health/{component}/{instance}",
"templated": true
},
"health": {
"href": "http://127.0.0.1:8080/actuator/health",
"templated": false
},
"info": {
"href": "http://127.0.0.1:8080/actuator/info",
"templated": false
}
}
}