The JDBC connection pool Druid

The basic structure of a project based DB (database responsible for connecting work), DAO interfaces and implementation class (class inheritance DB), bean package type objects, Druid used in DB and DAO

DB:

DB class is responsible for obtaining the data source, the basic steps are as follows

1. Prepare the configuration file db.properties

url=jdbc:oracle:thin:@192.168.31.50:1521:orcl
username=hanxd
password=123

Guess you like

Origin www.cnblogs.com/hanxdblog/p/11028441.html