当前位置:Gxlcms > 数据库问题 > JDBC笔记

JDBC笔记

时间:2021-07-01 10:21:17 帮助过:2人阅读

尝试连接到目标URL

DriverManger.registerDriver(new com.mysql.jdbc.Driver()) 的作用:

When the method getConnection is called, the DriverManager will attempt to locate a suitable driver from amongst those loaded at initialization and those loaded explicitly using the same classloader as the current applet or application. 

然后就可以通过函数调用获取实现了Connection接口的对象...

JDBC笔记

标签:etc   led   driver   不同   apple   mon   ble   ...   cti   

人气教程排行