jdbc驱动“org.gjt.mm.mysql.Driver"是什么?为了? [英] What is the jdbc driver "org.gjt.mm.mysql.Driver" for?

查看:21
本文介绍了jdbc驱动“org.gjt.mm.mysql.Driver"是什么?为了?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在接手同事的项目后,我注意到他使用org.gjt.mm.mysql.Driver"作为 MySQL 5 的 jdbc 驱动程序,而不是更常见的com.mysql.jdbc.Driver".它们都包含在我在 Maven 中心找到的驱动程序中,该驱动程序似乎是驱动程序的标准发行版.

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.

当我查找 gjt.org 时,我发现了一些旧网站,上面提到了Mark 的 mysql 驱动程序".

When I look up gjt.org I found some old site that talks about "Mark's mysql driver".

http://gjt.org/

推荐答案

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.

这篇关于jdbc驱动“org.gjt.mm.mysql.Driver"是什么?为了?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆