jdbc 驱动程序“org.gjt.mm.mysql.Driver”是什么?为了?
在接手一位同事的项目后,我注意到他使用“org.gjt.mm.mysql.Driver”作为 MySQL 5 的 jdbc 驱动程序,而不是更常见的“com.mysql.jdbc.Driver”。它们都包含在我在 Maven 中心找到的驱动程序中,该驱动程序似乎是驱动程序的标准发行版。
当我查找 gjt.org 时,我发现了一些谈论“Mark's mysql driver”的旧网站。
After taking over a coworker's project I noticed he was using "org.gjt.mm.mysql.Driver" as the jdbc driver for MySQL 5 instead of the more common one "com.mysql.jdbc.Driver". They both are contained in the driver I found on Maven central that appears to be the standard distribution of the driver.
When I look up gjt.org I found some old site that talks about "Mark's mysql driver".
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
MySQL JDBC 驱动程序最初是由业余爱好者开发的。后来它被捐赠给 MySQL,在那里他们重命名了包/类名。出于向后兼容性的原因,保留旧的类名,但如果可以的话,您应该尽快将其更新为 com.mysql.jdbc.Driver。
The MySQL JDBC driver was initially developed by a hobbyist. It's later donated to MySQL where they renamed the package/classname. The old classname is kept for backwards compatibility reasons, but if you can, you should update it to
com.mysql.jdbc.Driver
as soon as possible.