|
|
@ -38,10 +38,10 @@ public class InterceptorAdapterConfig implements WebMvcConfigurer { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void addInterceptors(InterceptorRegistry interceptorRegistry) { |
|
|
|
public void addInterceptors(InterceptorRegistry interceptorRegistry) { |
|
|
|
interceptorRegistry.addInterceptor(new FactoryAccountsInterceptor(redis, environment, redisLockClient, mockLoginService, suoFeiYaProperties, deliveryNoteService)) |
|
|
|
interceptorRegistry.addInterceptor(new FactoryAccountsInterceptor(redis, environment, redisLockClient, mockLoginService, suoFeiYaProperties, deliveryNoteService)) |
|
|
|
.addPathPatterns("/order/v1").order(2); |
|
|
|
.addPathPatterns("/order/v1").order(3); |
|
|
|
interceptorRegistry.addInterceptor(new LocalServerLoginAccountsInterceptor(redis, environment, redisLockClient, mockLoginService, suoFeiYaProperties, deliveryNoteService)) |
|
|
|
interceptorRegistry.addInterceptor(new LocalServerLoginAccountsInterceptor(redis, environment, redisLockClient, mockLoginService, suoFeiYaProperties, deliveryNoteService)) |
|
|
|
.addPathPatterns("/**") |
|
|
|
.addPathPatterns("/**") |
|
|
|
.excludePathPatterns("/order/v1") |
|
|
|
.excludePathPatterns("/order/v1") |
|
|
|
.order(3); |
|
|
|
.order(2); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|