master:健康检查接口添加;
parent
720a0bb496
commit
4ee62f22db
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -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()
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue