AI分析中心服务 监控检查

This commit is contained in:
lxu75
2024-12-24 16:53:01 +08:00
parent 5ae10a566f
commit 3a20c1e326
2 changed files with 7 additions and 3 deletions

View File

@@ -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")

View File

@@ -1,7 +1,11 @@
server: server:
port: 8080 port: 8080
management:
endpoints:
web:
exposure:
include: health
#spring 数据库等信息配置 #spring 数据库等信息配置
spring: spring:
application: application: