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

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

posted @ 2017-10-09 18:31  翠微  阅读(89)  评论(0编辑  收藏  举报