Java读取Properties文件 Java加载配置Properties文件

static{
    Properties prop = new Properties();
    prop.load(Thread.currentThread().getContextClassLoader().getResourceAsStream("configure.properties"));
    String path = properties.getProperty("reportOutPutPath");
}

原文地址:https://www.cnblogs.com/yangchongxing/p/7642423.html