http://www.fanqiang.com/a4/b5/20010415/211114.html
http://www.cn-java.com/target/news.php?news_id=406

解决方案 »

  1.   

    建议查找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.
      

  2.   

    也就是说,你的关于驱动的信息 都是被放在
    FileInputStream in =new FileInputStream(filename);//读取一个文件。
    这个流里面了。
    用props.load(in);// 装入这个流String drivers=props.getProperty("jdbc.drivers");//这句什么意思?
    ---------以jdbc.drivers为键值在流文件中 查找一个字符串 赋值
    下一句同理