mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-10-21 19:17:25 +08:00
feat: 新增 SaFirewallStrategy 防火墙策略:请求 path 黑名单校验、非法字符校验、白名单放行
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package com.pj.test;
|
||||
|
||||
import cn.dev33.satoken.util.SaResult;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* 测试专用Controller
|
||||
* @author click33
|
||||
*
|
||||
*/
|
||||
@RestController
|
||||
public class Test2Controller {
|
||||
|
||||
// 测试登录 ---- http://localhost:8081/.test
|
||||
@RequestMapping("/.test")
|
||||
public SaResult test2() {
|
||||
System.out.println("--- 进来了");
|
||||
return SaResult.ok("登录成功");
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user