Ver código fonte

测试拦截器

kouchengxing 5 anos atrás
pai
commit
f77b649fb2

+ 2 - 0
dgtly-apiframework/src/main/java/com/dgtly/apiframework/config/SwitchEnSqlInterceptorConfig.java

@@ -29,12 +29,14 @@ public class SwitchEnSqlInterceptorConfig {
 
         @PostConstruct
         public void addPageInterceptor() {
+            System.out.println("进入拦截器配置SwitchEnSqlInterceptorConfig-------------------------------------------------");
             SwitchEnSqlInterceptor interceptor = new SwitchEnSqlInterceptor();
             Iterator var3 = this.sqlSessionFactoryList.iterator();
             Properties properties = new Properties();
             interceptor.setProperties( properties);
             while(var3.hasNext()) {
                 SqlSessionFactory sqlSessionFactory = (SqlSessionFactory)var3.next();
+                System.out.println("加入拦截器到配置-------------------------------------------------");
                 sqlSessionFactory.getConfiguration().addInterceptor(interceptor);
             }