java 读取访问本地服务器文件

P

Properties prop = new properties();
InputStream inStream = getClass().getClassLoader().getResourceAsStream("config.properties");

prop.load(inStream);
Enumeration en = prop.propertyNames();
while(en.hasMoreElements()){
    String strKey
    String xxx =prop.getProperty("path");
}

猜你喜欢

转载自jccmjl.iteye.com/blog/2237668
今日推荐