Properties的使用 Properties属于HashTable的子类,属于双列集合<K,V>,所以没有顺序。 Properties类没有泛型,所有的键和值都以String形式存储。 文件样式: 创建: Properties prop = new Properties(); 加载: prop.load(new FileInputStream("conf.properties"