Mysql中的异常提示: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.

之前从未遇到过,在我使用shiro时,引用了最新的Mysql的依赖而出现的:

之前所使用的jdbc驱动如下:

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

目前由于使用了最新的依赖包,要将Mysql驱动改成一下形式:

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

相关文章:

  • 2022-12-23
  • 2021-12-04
  • 2022-01-09
  • 2021-08-28
猜你喜欢
  • 2021-10-19
相关资源
相似解决方案