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

获得一个线程读取configure.properties

从加载的Properties文件中读取属性

String path = properties.getProperty("reportOutPutPath");

相关文章:

  • 2021-12-22
  • 2021-10-01
  • 2021-12-18
  • 2022-12-23
  • 2021-09-15
  • 2022-12-23
  • 2022-01-16
猜你喜欢
  • 2022-12-23
  • 2021-07-16
  • 2022-02-08
  • 2021-10-13
  • 2021-05-18
  • 2021-11-16
  • 2021-07-23
相关资源
相似解决方案