建议查找Properties 这个类的具体的用法:The Properties class represents a persistent set of properties. The Properties can be saved to a stream or loaded from a stream. Each key and its corresponding value in the property list is a string. getProperty(String key) Searches for the property with the specified key in this property list.load(InputStream inStream) Reads a property list (key and element pairs) from the input stream.
getProperty(String key)
Searches for the property with the specified key in this property list.load(InputStream inStream)
Reads a property list (key and element pairs) from the input stream.
FileInputStream in =new FileInputStream(filename);//读取一个文件。
这个流里面了。
用props.load(in);// 装入这个流String drivers=props.getProperty("jdbc.drivers");//这句什么意思?
---------以jdbc.drivers为键值在流文件中 查找一个字符串 赋值
下一句同理