String conf = System.getProperty("user.home") + File.separator + "a.properties";
FileInputStream fis = new FileInputStream(conf);
prop.load(fis);
fis.close();
String conf = System.getProperty("user.home") + File.separator + "a.properties";
FileInputStream fis = new FileInputStream(conf);
prop.load(fis);
fis.close();
转载于:https://www.cnblogs.com/SEC-fsq/p/6818242.html