读取用户家目录下的配置文件到properties

String conf = System.getProperty("user.home") + File.separator + "a.properties";
FileInputStream fis = new FileInputStream(conf);
prop.load(fis);
fis.close();
posted @ 2017-05-06 21:08  范世强  阅读(344)  评论(0编辑  收藏  举报