java加载属性文件String path //属性文件的路径try {Properties prop new Properties()InputStrea
java加载属性文件
String path = ""; //属性文件的路径 try {Properties prop = new Properties();InputStream is = new BufferedInputStream(new FileInputStream(path)); prop.load(is);} catch (Exception e) {e.printStackTrace(); } 