jdbc spi 实例
所属分类 java
浏览量 79
import java.sql.Driver;
import java.util.ServiceLoader;
ServiceLoader< Driver> drivers = ServiceLoader.load(java.sql.Driver.class);
for (Driver driver : drivers ) {
System.out.println(driver.getClass().getName());
}
com.mysql.cj.jdbc.Driver
oracle.jdbc.OracleDriver
org.postgresql.Driver
com.microsoft.sqlserver.jdbc.SQLServerDriver
com.alibaba.druid.proxy.DruidDriver
com.alibaba.druid.mock.MockDriver
ojdbc8-21.5.0.0.jar!/META-INF/services/java.sql.Driver
oracle.jdbc.OracleDriver
mysql-connector-j-8.0.32.jar!/META-INF/services/java.sql.Driver
com.mysql.cj.jdbc.Driver
mssql-jdbc-10.2.3.jre8.jar!/META-INF/services/java.sql.Driver
com.microsoft.sqlserver.jdbc.SQLServerDriver
h2-2.2.220.jar!/META-INF/services/java.sql.Driver
org.h2.Driver
druid-1.2.16.jar!/META-INF/services/java.sql.Driver
com.alibaba.druid.proxy.DruidDriver
com.alibaba.druid.mock.MockDriver
postgresql-42.3.8.jar!/META-INF/services/java.sql.Driver
org.postgresql.Driver
上一篇
下一篇
java8的日期时间
java.time.Instant 说明
java 各种日期时间转换
nodejs hello
mybatis 获取自动生成的键值
DateTimeFormatter 使用