瀏覽代碼

test/* 测试路径不拦截

luhg 7 年之前
父節點
當前提交
e87733a15f
共有 1 個文件被更改,包括 3 次插入1 次删除
  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("/*/**");
 	}