Browse Source

路径拦截器修改

zhuth 7 years ago
parent
commit
da913e11c9

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

@@ -11,7 +11,7 @@ import com.uas.eis.core.support.InterceptorConfig;
 public class WebAppConfig extends WebMvcConfigurationSupport{
 
 	public void addInterceptors(InterceptorRegistry registry){
-		registry.addInterceptor(new InterceptorConfig()).addPathPatterns("/hello");
+		registry.addInterceptor(new InterceptorConfig()).addPathPatterns("/hello").excludePathPatterns("/login");
 //		registry.addInterceptor(new InterceptorConfig()).addPathPatterns("/*").excludePathPatterns("/login");
 		registry.addInterceptor(new DataSourceInterceptor()).addPathPatterns("/*/**");
 	}

+ 1 - 1
src/main/resources/application.yml

@@ -3,7 +3,7 @@ spring:
         name: UAS_DEV
         type: org.apache.tomcat.jdbc.pool.DataSource
         driverClassName: oracle.jdbc.OracleDriver
-        username: UAS
+        username: UAS_DEV
         password: select!#%*(
         url: jdbc:oracle:thin:@192.168.253.6:1521:orcl
         # 初始化大小,最小,最大