原文: The basic service for managing a set of JDBC drivers. NOTE: The DataSource interface, new in the JDBC 2.0 API, provides another way to connect to a data source. The use of a DataSource object is the preferred means of connecting to a data source.
功能 1.注册驱动 注册驱动:告诉程序使用哪个驱动jar包 写代码使用:Class.forName("com.mysql.jdbc.Driver"); 查看源码 mysql-connector-java-5.1.37-bin\com\mysql\jdbc文件夹下的 Driver.class 文件 // // Source code recreated from a .class file by IntelliJ IDEA // (powered by Fernflower decomp