【发布时间】:2017-12-04 14:20:05
【问题描述】:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
这将为您的应用程序添加几个有用的端点。其中之一是 /health。当您启动应用程序并导航到 /health 端点时,您会看到它已经返回了一些数据。
{
"status":"UP",
"diskSpace": {
"status":"UP",
"free":56443746,
"threshold":1345660
}
}
如何在spring boot health中添加自定义健康检查?
【问题讨论】:
标签: spring spring-boot spring-boot-actuator