feat: 新增 SaFirewallStrategy 防火墙策略:请求 path 黑名单校验、非法字符校验、白名单放行

This commit is contained in:
click33
2024-12-08 11:17:42 +08:00
parent 11492df031
commit 6f1094c361
7 changed files with 149 additions and 60 deletions

View File

@@ -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("登录成功");
}
}