AI分析中心服务 监控检查
This commit is contained in:
@@ -14,8 +14,8 @@ public class HealthController {
|
|||||||
|
|
||||||
@GetMapping(value = "/actuator/health")
|
@GetMapping(value = "/actuator/health")
|
||||||
@ApiOperation(value = "健康检查")
|
@ApiOperation(value = "健康检查")
|
||||||
public void healthCheck(HttpServletResponse response) {
|
public ResultMsg<Boolean> healthCheck(HttpServletResponse response) {
|
||||||
response.setStatus(HttpServletResponse.SC_OK);
|
return ResultMsg.ok(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping(value = "/health/check/test")
|
@GetMapping(value = "/health/check/test")
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
server:
|
server:
|
||||||
port: 8080
|
port: 8080
|
||||||
|
|
||||||
|
management:
|
||||||
|
endpoints:
|
||||||
|
web:
|
||||||
|
exposure:
|
||||||
|
include: health
|
||||||
#spring 数据库等信息配置
|
#spring 数据库等信息配置
|
||||||
spring:
|
spring:
|
||||||
application:
|
application:
|
||||||
|
|||||||
Reference in New Issue
Block a user