全局过滤器增加限定[拦截路径]与[排除路径]功能

This commit is contained in:
shengzhang
2021-04-15 00:45:03 +08:00
parent 2fcf71af41
commit b7859b67d3
7 changed files with 184 additions and 16 deletions

View File

@@ -33,7 +33,9 @@ public class SaTokenConfigure {
*/
@Bean
public SaServletFilter getSaReactorFilter() {
return new SaServletFilter();
return new SaServletFilter()
.addInclude("/**")
.addExclude("/favicon.ico");
}
/**
@@ -93,7 +95,9 @@ public class SaTokenConfigure {
*/
@Bean
public SaReactorFilter getSaReactorFilter() {
return new SaReactorFilter();
return new SaReactorFilter()
.addInclude("/**")
.addExclude("/favicon.ico");
}
// 其它代码 ...