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