新增 SaRouter.stop() 函数

This commit is contained in:
shengzhang
2021-06-03 23:30:16 +08:00
parent 4efb0568e5
commit c57a5cfc9d
18 changed files with 142 additions and 71 deletions

View File

@@ -37,13 +37,14 @@ public class SaTokenConfigure implements WebMvcConfigurer {
return new SaServletFilter()
// 指定 [拦截路由] 与 [放行路由]
.addInclude("/**").addExclude("/favicon.ico")
.addInclude("/**")// .addExclude("/favicon.ico")
// 认证函数: 每次请求执行
.setAuth(r -> {
// System.out.println("---------- sa全局认证");
// SaRouterUtil.match("/test/test", () -> new Object());
System.out.println("---------- sa全局认证");
System.out.println(SaHolder.getRequest().getRequestPath());
// SaRouter.match("/test/test", () -> new Object());
})
// 异常处理函数:每次认证函数发生异常时执行此函数