|
|
|
@ -102,7 +102,7 @@ public class Start extends JFinalConfig {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
me.add(arp);
|
|
|
|
|
|
|
|
|
|
//加载Redis插件
|
|
|
|
|
RedisPlugin redis = new RedisPlugin("Redis", PropKit.get("redis_ip"), PropKit.getInt("redis_port"), 10000);
|
|
|
|
|
me.add(redis);
|
|
|
|
|
}
|
|
|
|
@ -173,17 +173,5 @@ public class Start extends JFinalConfig {
|
|
|
|
|
|
|
|
|
|
//初始化组织机构主键序列
|
|
|
|
|
PkUtil.InitOrgNumPk();
|
|
|
|
|
|
|
|
|
|
// 从文件加载,读取配置项
|
|
|
|
|
Properties prop = new Properties();
|
|
|
|
|
FileInputStream fis = new FileInputStream(PathKit.getRootClassPath()+File.separator+"undertow.properties");
|
|
|
|
|
prop.load(fis);
|
|
|
|
|
String WebRoot = prop.getProperty("undertow.resourcePath").split(",")[0];
|
|
|
|
|
fis.close();
|
|
|
|
|
CommonUtil.basePath = WebRoot + File.separator + "Excel";
|
|
|
|
|
if (!new File(CommonUtil.basePath).exists()) {
|
|
|
|
|
//创建目录
|
|
|
|
|
new File(CommonUtil.basePath).mkdirs();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|