dev-v2 #3

Merged
bunny merged 122 commits from dev-v2 into master-v2 2024-03-30 23:40:58 +08:00
11 changed files with 3 additions and 3 deletions
Showing only changes of commit d13bb2dbab - Show all commits

View File

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

View File

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

View File

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