主要用于读取Java的配置文件在Java中,其配置文件常为.properties文件,格式为文本文件,文件的内容的格式是“键=值”或者“键 值”的格式,可以使用工具类进行说明
public class ftpConfigLoadUtils{
public static void load(String properNamePath){
properties properties=new properties();
properties.load(new FileInputStream(properNamePath));
Set<Object> set=properties.keySet();
Iterator<Object> it=set.iterator();
while(it.hashNext()){
String key=(String )it.next();
String value=properties.getProperty(key)
}
}
}