private static String context;
//文件路径
private static String fileBasePath;
static {
Properties pop = new Properties();
InputStream is = CreateHtmlUtil.class.getClassLoader().getResourceAsStream("App.properties");
try {
pop.load(is);
context = (String) pop.get("projectPath");
fileBasePath = (String)pop.get("fileBasePath");
} catch (IOException e) {
e.printStackTrace();
}
}
Properties 读取配置文件
最新推荐文章于 2024-05-24 10:49:58 发布