Properties的load方法其实就是传进去一个输入流,字节流或者字符流,字节流利用InputStreamReader转化为字符流,然后字符流用

BufferedReader包装,BufferedReader读取properties配置文件,每

次读取一行,分割成两个字符串。因为Properties是Map的子类,

然后用put将两个字符串装进Properties对象。

用 Properties.getProperty()来读取配置文件里面的属性值.


 
                    
            
                

相关文章:

  • 2021-09-27
  • 2021-05-12
  • 2021-08-30
  • 2021-11-17
  • 2022-12-23
猜你喜欢
  • 2022-01-16
  • 2021-05-20
  • 2021-11-12
  • 2021-05-28
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
相关资源
相似解决方案