private void getProperties(){
//要读取的文件
InputStream inputStream = DBBackup.class.getClassLoader().getResourceAsStream("/resource/db.properties");
Properties p = new Properties();
try {
p.load(inputStream);
inputStream.close();
String dbName=p.getProperty("dbName");
String password = p.getProperty("password");
} catch (IOException e) {
e.printStackTrace();
}
}
欢迎大家加入京东淘宝捡垃圾群:698433653