How do I manually configure a DataSource in Java?

前端 未结 6 777
孤街浪徒
孤街浪徒 2020-12-04 11:05

I\'m trying to follow Sun\'s JDBC tutorial at http://java.sun.com/docs/books/tutorial/jdbc/basics/connecting.html

It gives the following example code:



        
6条回答
  •  半阙折子戏
    2020-12-04 11:59

    I think the example is wrong - javax.sql.DataSource doesn't have these properties either. Your DataSource needs to be of the type org.apache.derby.jdbc.ClientDataSource, which should have those properties.

提交回复
热议问题