随笔分类 -  Properties

摘要:private static void demo() { Properties pro2 = new Properties();// 创建properties对象 File file = new File("D:\\test" + File.separator + "area.xml");// 设置 阅读全文
posted @ 2021-01-16 15:25 一块 阅读(334) 评论(0) 推荐(0)
摘要:private static void demo03() { Properties pro1 = new Properties();// 创建properties对象 pro1.setProperty("wf", "guxianling");// 设置内容 pro1.setProperty("my" 阅读全文
posted @ 2021-01-16 15:20 一块 阅读(122) 评论(0) 推荐(0)
摘要:private static void demo02() { Properties pro = new Properties();//创建properties属性类的对象 File file = new File("D:\\test"+File.separator+"文件名.properties") 阅读全文
posted @ 2021-01-16 14:54 一块 阅读(111) 评论(0) 推荐(0)
摘要:public class properties { public static void main(String[] args) { Properties properties = new Properties();//创建properties对象 properties.setProperty("M 阅读全文
posted @ 2021-01-16 14:33 一块 阅读(108) 评论(0) 推荐(0)