Properties转换成有序Map

来源:互联网 发布:知我无情有情 张南雁 编辑:程序博客网 时间:2024/05/17 15:22

Properties prop=new Properties();

 

FileInputStream inputStream=new FileInputStream(propertiesFileAddress);
  

prop.load(inputStream);
  

inputStream.close();
 

TreeMap<String, String> treeMap=new TreeMap<String, String>((Map)prop);

原创粉丝点击