main
HuangHai 3 months ago
parent e9333b022f
commit b148c1ea9a

@ -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();
}
}
}

@ -34,7 +34,6 @@ import java.util.regex.Pattern;
public class CommonUtil {
//在独立的main函数中使用下面的方式进行声明logback对象
private static Logger log = LoggerFactory.getLogger(CommonUtil.class);
public static String basePath ;//Excel目录
/**
* URL
* @param request

Loading…
Cancel
Save