|
@@ -1,6 +1,7 @@
|
|
|
package org.diagbot.push.config;
|
|
|
|
|
|
import org.diagbot.bigdata.common.RegionInterceptor;
|
|
|
+import org.diagbot.common.push.cache.CacheFileManager;
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
import org.springframework.web.servlet.config.annotation.InterceptorRegistration;
|
|
|
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
|
|
@@ -20,5 +21,9 @@ public class InterceptorConfig implements WebMvcConfigurer {
|
|
|
//登录拦截的管理器
|
|
|
InterceptorRegistration registration = registry.addInterceptor(new RegionInterceptor()); //拦截的对象会进入这个类中进行判断
|
|
|
registration.addPathPatterns("/**"); //所有路径都被拦截
|
|
|
+
|
|
|
+ //生成数据文件
|
|
|
+ CacheFileManager cacheFileManager = new CacheFileManager();
|
|
|
+ cacheFileManager.createCacheFile();
|
|
|
}
|
|
|
}
|