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方法加载属性信息
最新推荐文章于 2022-06-15 21:57:50 发布