Loading class `com.mysql.jdbc.Driver‘. This is deprecated. The new driver class is `com.mysql.cj.jdb

Posted 一只楠喃

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Loading class `com.mysql.jdbc.Driver‘. This is deprecated. The new driver class is `com.mysql.cj.jdb相关的知识,希望对你有一定的参考价值。

运行时,发现项目正常运行后报警告:Loading class com.mysql.jdbc.Driver'. This is deprecated. The new driver class iscom.mysql.cj.jdbc.Driver’. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.

原因:数据库驱动’com.mysql.jdbc.Driver’已经被弃用了,应该使用新的驱动‘com.mysql.cj.jdbc.Drive’,所以在我们application配置文件中进行修改

这样下次运行时就不会再有警告了

以上是关于Loading class `com.mysql.jdbc.Driver‘. This is deprecated. The new driver class is `com.mysql.cj.jdb的主要内容,如果未能解决你的问题,请参考以下文章

解决:Loading class `com.mysql.jdbc.Driver‘. This is deprecated. The new driver class is `com.mysql.cj(

解决:Loading class `com.mysql.jdbc.Driver‘. This is deprecated. The new driver class is `com.mysql.cj

Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj

解决Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.

Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj

mysql 问题 Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is