Explorar el Código

test/* 测试路径不拦截

luhg hace 7 años
padre
commit
e87733a15f
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/main/java/com/uas/eis/core/WebAppConfig.java

+ 3 - 1
src/main/java/com/uas/eis/core/WebAppConfig.java

@@ -27,7 +27,9 @@ public class WebAppConfig extends WebMvcConfigurationSupport{
 	}
 	}
 	
 	
 	public void addInterceptors(InterceptorRegistry registry){
 	public void addInterceptors(InterceptorRegistry registry){
-		registry.addInterceptor(loginInterceptor()).addPathPatterns("/**").excludePathPatterns("/EIS/login");
+		registry.addInterceptor(loginInterceptor()).addPathPatterns("/**")
+				.excludePathPatterns("/EIS/login")
+				.excludePathPatterns("/test/*");
 		registry.addInterceptor(new DataSourceInterceptor()).addPathPatterns("/*/**");
 		registry.addInterceptor(new DataSourceInterceptor()).addPathPatterns("/*/**");
 	}
 	}