我有一个SpringBoot应用程序。 2.1.3.JWT发行的RELEASE,我想添加一个执行器。我添加了这种依赖性
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
我已将此属性添加到application.properties
文件
management.endpoints.web.exposure.include=health,info
management.endpoint.health.show-details=always
当我访问/actuator
时,得到以下答复:
{
"_links": {
"self": {
"href": "http://127.0.0.1:1133/tdk/actuator",
"templated": false
},
"health": {
"href": "http://127.0.0.1:1133/tdk/actuator/health",
"templated": false
},
"health-component": {
"href": "http://127.0.0.1:1133/tdk/actuator/health/{component}",
"templated": true
},
"health-component-instance": {
"href": "http://127.0.0.1:1133/tdk/actuator/health/{component}/{instance}",
"templated": true
},
"info": {
"href": "http://127.0.0.1:1133/tdk/actuator/info",
"templated": false
}
}
}
但是当我访问http://127.0.0.1:1133/tdk/actuator/info
时,我只有
{}