Browse Source

test/* 测试路径不拦截

luhg 8 năm trước cách đây
mục cha
commit
e87733a15f
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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){
-		registry.addInterceptor(loginInterceptor()).addPathPatterns("/**").excludePathPatterns("/EIS/login");
+		registry.addInterceptor(loginInterceptor()).addPathPatterns("/**")
+				.excludePathPatterns("/EIS/login")
+				.excludePathPatterns("/test/*");
 		registry.addInterceptor(new DataSourceInterceptor()).addPathPatterns("/*/**");
 	}