|
@@ -1,9 +1,8 @@
|
|
|
package com.zy.bms.config;
|
|
|
|
|
|
import com.zy.bms.common.interceptor.AuthInterceptor;
|
|
|
-import com.zy.bms.common.interceptor.VerifyInterceptor;
|
|
|
+import com.zy.bms.common.interceptor.ChannelInterceptor;
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
-import org.springframework.context.annotation.Profile;
|
|
|
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
|
|
|
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
|
|
|
|
@@ -17,14 +16,14 @@ import java.util.List;
|
|
|
* @author chenyi
|
|
|
* Create on 2019/10/10
|
|
|
*/
|
|
|
-@Profile("prod")
|
|
|
+//@Profile("prod")
|
|
|
@Configuration
|
|
|
public class InterceptorConfig implements WebMvcConfigurer {
|
|
|
/**
|
|
|
* 身份验证拦截器
|
|
|
*/
|
|
|
@Resource
|
|
|
- private VerifyInterceptor verifyInterceptor;
|
|
|
+ private ChannelInterceptor verifyInterceptor;
|
|
|
@Resource
|
|
|
private AuthInterceptor authInterceptor;
|
|
|
|
|
@@ -41,11 +40,11 @@ public class InterceptorConfig implements WebMvcConfigurer {
|
|
|
@Override
|
|
|
public void addInterceptors(InterceptorRegistry registry) {
|
|
|
registry.addInterceptor(verifyInterceptor)
|
|
|
- .addPathPatterns("omp/api/pc/**")
|
|
|
+ .addPathPatterns("/bms/api/app/**")
|
|
|
.excludePathPatterns("/common/**");
|
|
|
|
|
|
- registry.addInterceptor(authInterceptor)
|
|
|
- .addPathPatterns("omp/api/pc/**")
|
|
|
- .excludePathPatterns(whiteList);
|
|
|
+// registry.addInterceptor(authInterceptor)
|
|
|
+// .addPathPatterns("bms/api/app/**")
|
|
|
+// .excludePathPatterns(whiteList);
|
|
|
}
|
|
|
}
|