public void writeVaule(){Properties pro=new Properties();InputStream in=pro.getClass().getResourceAsStream("/dbConfig/dbsqlsever.properties");try {pro.load(in);pro.setProperty("driver", "mysql");pro.setProperty("url", "jdbce");pro.setProperty(username, "lijia");pro.setProperty("password", "125487");OutputStream os = null;os = new FileOutputStream(new File(pro.getClass().getResourceAsStream("/dbConfig/dbsqlsever.properties").toURI()));pro.store(os, null);os.flush();os.close();} catch (IOException e) {// TODO Auto-generated catch blocke.printStackTrace();}}
public void writeVaule(){Properties pro=new Properties();InputStream in=pro.getClass().getResourceAsStream("/dbConfig/dbsqlsever.properties");try {pro.load(in);pro.setProperty("driver", "mysql");pro.setProperty("url", "jdbce");pro.setProperty(username, "lijia");pro.setProperty("password", "125487");OutputStream os = null;os = new FileOutputStream(new File(pro.getClass().getResourceAsStream("/dbConfig/dbsqlsever.properties").toURI()));pro.store(os, null);os.flush();os.close();} catch (IOException e) {// TODO Auto-generated catch blocke.printStackTrace();}}