28 lines
711 B
Java
28 lines
711 B
Java
package cn.code.nl.gateway;
|
|
|
|
import cn.code.nl.framework.common.pojo.CommonResult;
|
|
import cn.code.nl.framework.common.util.servlet.ServletUtils;
|
|
import jakarta.annotation.security.PermitAll;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
/**
|
|
* 默认 Controller
|
|
* @author 芋道源码
|
|
*/
|
|
@RestController
|
|
@Slf4j
|
|
public class DefaultController {
|
|
|
|
/**
|
|
* 测试接口:打印 query、header、body
|
|
*/
|
|
@RequestMapping(value = { "/gateway/h" })
|
|
@PermitAll
|
|
public CommonResult<String> test() {
|
|
return CommonResult.success("欢迎进入诺力项目网关");
|
|
}
|
|
|
|
}
|