master:健康检查接口添加;

pull/1121/head
liujiang 2025-10-25 19:48:18 +08:00
parent 720a0bb496
commit 4ee62f22db
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,23 @@
package com.ruoyi.web.controller.xkt.healthCheck;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
*
*
* @author ruoyi
*/
@RestController
@RequestMapping("/rest/v1/health-check")
public class HealthCheckController extends BaseController {
@GetMapping
public R<String> healthCheck() {
return R.ok();
}
}

View File

@ -144,6 +144,8 @@ public class SecurityConfig
.antMatchers("/rest/v1/prods/pc/detail/**").permitAll()
// 获取字段类型
.antMatchers("/rest/v1/sys/dict/data/type/**").permitAll()
// 健康检查
.antMatchers("/rest/v1/health-check/**").permitAll()