public String getPassword() {
Properties prop = new Properties();
InputStream in = getClass().getResourceAsStream("/jdbc.properties");//properties名称
try {
prop.load(in);
} catch (IOException e) {
e.printStackTrace();
}
String password = prop.getProperty("vvv");//通过键获取值
return password;
}