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