美文网首页
MySQL笔记——Loading class `com.mysq

MySQL笔记——Loading class `com.mysq

作者: 麦香菌 | 来源:发表于2018-07-25 16:21 被阅读0次

    错误:

    Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver 
    class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via 
    the SPI and manual loading of the driver class is generally unnecessary.
    

    虽然结果运行没问题,但一开始就报这么一个错看着也不舒服。
    后来发现原来新版的连接MySQL驱动包的driver改了。
    旧版:


    driver

    新版:


    driver

    感谢

    来源:《Loading class com.mysql.jdbc.Driver'. This is deprecated. The new driver class iscom.mysql.cj.jdb》
    链接:https://blog.csdn.net/anaini1314/article/details/71157791

    相关文章

      网友评论

          本文标题:MySQL笔记——Loading class `com.mysq

          本文链接:https://www.haomeiwen.com/subject/dvapmftx.html