public static void loadDemo() throws IOException {
Properties prop = new Properties();
FileInputStream fis = new FileInputStream("info.txt");
prop.load(fis);
System.out.println(prop);
fis.close();
}
使用Properties的load方法加载属性信息
最新推荐文章于 2023-06-28 15:11:39 发布