InputStream in = mainApp.class.getClass().getResourceAsStream("/resources/log4j.properties");
Properties p = new Properties();
try {
p.load(in);
PropertyConfigurator.configure(p);
} catch (IOException e) {
e.printStackTrace();
}
读取JAR包中配置文件的解决方法
最新推荐文章于 2025-02-10 23:56:13 发布