liuyu
5 天以前 aed0e43ff4eb2cdb5fa81b6b9b16d8d2b723c02e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package jnpf.tmsController;
 
import jnpf.base.ActionResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
 
/**
 * 链路验收探针:网关 /api/tms/ping(StripPrefix=2)→ 本服务 /ping。
 * 放行配置见 application.yml(sa-token / 租户 / 内部鉴权三处)。
 */
@RestController
public class PingController {
 
    @GetMapping("/ping")
    public ActionResult<String> ping() {
        return ActionResult.success("pong");
    }
}