satoken匹配规则修改
This commit is contained in:
parent
5d2533be35
commit
e9229ad9e1
|
|
@ -54,11 +54,12 @@ public class SaTokenConfigure implements WebMvcConfigurer {
|
||||||
// 重置根路径,防止satoken切割根路径导致匹配不到路径
|
// 重置根路径,防止satoken切割根路径导致匹配不到路径
|
||||||
ApplicationInfo.routePrefix = "";
|
ApplicationInfo.routePrefix = "";
|
||||||
|
|
||||||
SaRouter.match("/admin/**")
|
SaRouter.match("/user/**")
|
||||||
|
.check(r -> StpKit.USER.checkLogin())
|
||||||
|
.match("/**")
|
||||||
.notMatch("/admin/auth/**")
|
.notMatch("/admin/auth/**")
|
||||||
.notMatch("/admin/feign/**")
|
.notMatch("/admin/feign/**")
|
||||||
.check(r -> StpKit.ADMIN.checkLogin());
|
.check(r -> StpKit.ADMIN.checkLogin());
|
||||||
SaRouter.match("/user/**").check(r -> StpKit.USER.checkLogin());
|
|
||||||
})).addPathPatterns("/**");
|
})).addPathPatterns("/**");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue