mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-09-19 10:08:07 +08:00
sa-token-solon-plugin:将示例的 SaTokenPathFilter 改用 SaTokenPathInterceptor
This commit is contained in:
@@ -21,8 +21,8 @@ public class SaTokenConfigure {
|
|||||||
* 注册 [sa-token全局过滤器]
|
* 注册 [sa-token全局过滤器]
|
||||||
*/
|
*/
|
||||||
@Bean
|
@Bean
|
||||||
public SaTokenPathFilter tokenPathFilter() {
|
public void tokenPathFilter() {
|
||||||
return new SaTokenPathFilter()
|
Solon.app().before(new SaTokenPathInterceptor()
|
||||||
|
|
||||||
// 指定 [拦截路由] 与 [放行路由]
|
// 指定 [拦截路由] 与 [放行路由]
|
||||||
.addInclude("/**").addExclude("/favicon.ico")
|
.addInclude("/**").addExclude("/favicon.ico")
|
||||||
@@ -54,7 +54,6 @@ public class SaTokenConfigure {
|
|||||||
.setHeader("X-Content-Type-Options", "nosniff")
|
.setHeader("X-Content-Type-Options", "nosniff")
|
||||||
;
|
;
|
||||||
})
|
})
|
||||||
;
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user