feat(修改): 修改请求排出路径

This commit is contained in:
bunny 2024-03-23 14:42:38 +08:00
parent 786c8a7183
commit d13bb2dbab
11 changed files with 3 additions and 3 deletions

View File

@ -45,10 +45,8 @@ public class WebMvcConfiguration extends WebMvcConfigurationSupport {
protected void addInterceptors(InterceptorRegistry registry) {
log.info("开始注册自定义拦截器...");
// 需要拦截的
String[] addPathPatters = {"/admin/**"};
registry.addInterceptor(loginAuthInterceptor).addPathPatterns(addPathPatters)
registry.addInterceptor(loginAuthInterceptor).addPathPatterns("/**")
.excludePathPatterns(interceptorsProperties.getNoAuthUrls());
System.out.println(interceptorsProperties.getNoAuthUrls());
}
/**

View File

@ -16,6 +16,7 @@ bunny:
noAuthUrls:
- /admin/system/index/login
- /admin/system/index/generateValidateCode
- /v3/**
# jackson:
# date-format: yyyy-MM-dd HH:mm:ss
# time-zone: GMT+8

View File

@ -16,6 +16,7 @@ bunny:
noAuthUrls:
- /admin/system/index/login
- /admin/system/index/generateValidateCode
- /v3/**
# jackson:
# date-format: yyyy-MM-dd HH:mm:ss
# time-zone: GMT+8