标签:
InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("jdbc.properties");
Properties p = new Properties();
try {
p.load(inputStream);
} catch (IOException e1) {
e1.printStackTrace();
}
System.out.println("ip:"+p.getProperty("jdbc.password"));
标签:
原文地址:http://www.cnblogs.com/zszitman/p/4685742.html