package com.epmet.healthcheck; import com.epmet.commons.tools.utils.Result; import org.springframework.stereotype.Component; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** * @Description 健康检查。gateway中的/api前缀只用于匹配转发路由,自身的Controller的前缀为/ * @author wxz * @date 2021.10.11 17:56:34 */ @RestController @RequestMapping("/gateway/healthcheck") public class HealthCheckController { /** * http健康检查 * @return */ @PostMapping("http") public Result httpHealthCheck() { return new Result(); } }