Browse Source

1.关闭自定义注解重复提交拦截器

master
zhenghaoyu 8 months ago
parent
commit
5cb708f329
  1. 5
      blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/config/InterceptorAdapterConfig.java
  2. 5
      blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/config/InterceptorAdapterConfig.java

5
blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/config/InterceptorAdapterConfig.java

@ -1,6 +1,5 @@
package com.logpm.trunkline.config;
import com.logpm.trunkline.interceptor.ParameterCombinationInterceptor;
import lombok.AllArgsConstructor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
@ -12,7 +11,7 @@ public class InterceptorAdapterConfig implements WebMvcConfigurer {
@Override
public void addInterceptors(InterceptorRegistry interceptorRegistry) {
interceptorRegistry.addInterceptor(new ParameterCombinationInterceptor())
.addPathPatterns("/**");
// interceptorRegistry.addInterceptor(new ParameterCombinationInterceptor())
// .addPathPatterns("/**");
}
}

5
blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/config/InterceptorAdapterConfig.java

@ -1,7 +1,6 @@
package com.logpm.warehouse.config;
import com.logpm.warehouse.config.interceptor.LocalServerLoginAccountsInterceptor;
import com.logpm.warehouse.interceptor.ParameterCombinationInterceptor;
import lombok.AllArgsConstructor;
import org.springblade.core.redis.cache.BladeRedis;
import org.springblade.core.redis.lock.RedisLockClient;
@ -25,8 +24,8 @@ public class InterceptorAdapterConfig implements WebMvcConfigurer {
public void addInterceptors(InterceptorRegistry interceptorRegistry) {
interceptorRegistry.addInterceptor(new LocalServerLoginAccountsInterceptor(redis,environment,redisLockClient)).addPathPatterns("/oldpush/**").order(1);
interceptorRegistry.addInterceptor(new ParameterCombinationInterceptor())
.addPathPatterns("/**");
// interceptorRegistry.addInterceptor(new ParameterCombinationInterceptor())
// .addPathPatterns("/**");
}
}

Loading…
Cancel
Save