public static void main(String[] args) throws IOException {
        Properties properties=new Properties();
        properties.load(new FileInputStream("F:\\test.properties"));
        System.out.println(properties.getProperty("name"));
        System.out.println(properties.getProperty("age"));
    }

 

 

Properties的使用

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-19
  • 2021-12-30
  • 2021-08-07
  • 2022-12-23
  • 2021-12-24
猜你喜欢
  • 2021-11-13
  • 2022-12-23
  • 2021-08-31
  • 2022-12-23
  • 2021-05-28
  • 2021-07-06
  • 2021-07-16
相关资源
相似解决方案