Introduction - If you have any usage issues, please Google them yourself
Registration is loaded into the JDBC driver.
Registration is loaded into driver driver. That is mandatory class loading: there are three ways to register JDBC drivers.
Method 1: Class.forName (DriverName); among them, the DriverName=Driver package name. Driver class name;
Oracle's DriverName= "oracle.jdbc.driver.OracleDriver".
SQLServer's DriverName= "com.microsoft.jdbc.sqlserver.SQLServerDriver".
Method three: create a driver object directly: new oracle.jdbc.driver.OracleDriver ().
MySql's DriverName= "com.mysql.jdbc.Driver";
Method two: Class.forName (DriverName).NewInstance ();
There are two functions of code completion: first, load the driver into memory; second. Driver Manager is the only Java class in the JDBC specification.