Java读取Properties文件 Java加载配置Properties文件
static{ Properties prop = new Properties(); prop.load(Thread.currentThread().getContextClassLoader().getResourceAsStream("configure.properties")); String path = properties.getProperty("reportOutPutPath"); }
static{ Properties prop = new Properties(); prop.load(Thread.currentThread().getContextClassLoader().getResourceAsStream("configure.properties")); String path = properties.getProperty("reportOutPutPath"); }