【发布时间】:2018-01-30 19:31:15
【问题描述】:
我开发了一个应用程序 spring-boot,我使用 spring-boot-starter-actuator 来获取有关我的应用程序的信息。问题是请求 GET: /health 不显示 redis 的状态。这是我的 application.yml 的快照
spring:
datasource:
url: jdbc:mysql://********
username: ****
password: *******
driver-class-name: com.mysql.jdbc.Driver
ldap:
urls: ldap://*****
username: ****
password: *******
redis:
url: redis://******
这是发出 GET 请求的结果:/health
{
"status": "UP",
"diskSpace": {
"status": "UP"
},
"ldap": {
"status": "UP",
"version": "3"
},
"db": {
"status": "UP",
"database": "MySQL",
"hello": 1
}
}
【问题讨论】:
标签: maven spring-boot gradle spring-boot-actuator