java加载属性文件
String path = ""; //属性文件的路径 try {Properties prop = new Properties();InputStream is = new BufferedInputStream(new FileInputStream(path)); prop.load(is);} catch (Exception e) {e.printStackTrace(); } 发布时间: 2012-10-07 17:28:51 作者: rapoo
java加载属性文件
String path = ""; //属性文件的路径 try {Properties prop = new Properties();InputStream is = new BufferedInputStream(new FileInputStream(path)); prop.load(is);} catch (Exception e) {e.printStackTrace(); }