摘要: //无法获取更新后的数据 -------是因为类装载器只装载一次 InputStream in = Load.class.getClassLoader().getResourceAsStream("db.properties"); Properties prop = new Properties(); prop.load(in); prop.get("url"); //可以获取更新后的数据 String path = Load.class.getClassLoader().getResource("db.properties").ge 阅读全文
posted @ 2014-03-09 21:08 keia 阅读(125) 评论(0) 推荐(0) 编辑