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.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
之前从未遇到过,在我使用shiro时,引用了最新的Mysql的依赖而出现的:
之前所使用的jdbc驱动如下:
目前由于使用了最新的依赖包,要将Mysql驱动改成一下形式: