dev-v2 #3
|
@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue