Properties p = new Properties();
try {
p.load(inputStream);
} catch (IOException e1) {
e1.printStackTrace();
}
System.out.println( " ip: " + p.getProperty("ip") + " ,port: " + p.getProperty("port"));
------------------abc.properties内容---------------------
ip=1
port=2
---------------------------------------------------------
2623



被折叠的 条评论
为什么被折叠?



