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

String conf = System.getProperty("user.home") + File.separator + "a.properties";
FileInputStream fis = new FileInputStream(conf);
prop.load(fis);
fis.close();
原文地址:https://www.cnblogs.com/fsqsec/p/6818242.html