24 lines
575 B
Plaintext
24 lines
575 B
Plaintext
package com.sercurityControl.proteam.controller;
|
|
|
|
|
|
import com.sercurityControl.proteam.util.BaseController;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
/**
|
|
* 健康检查控制层
|
|
*/
|
|
@RestController
|
|
@RequestMapping("/health/")
|
|
public class HealthController extends BaseController {
|
|
|
|
@GetMapping("getHealth")
|
|
public int getHealth() {
|
|
return 200;
|
|
}
|
|
|
|
|
|
}
|