feat:测试配置文件
This commit is contained in:
@@ -0,0 +1,27 @@
|
|||||||
|
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("欢迎进入诺力项目网关");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user