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.
解决方法:
在配置文件中将com.mysql.jdbc.Driver改为如下:即加个cj即可
![](https://i-blog.csdnimg.cn/blog_migrate/8fa9e5dea1c49767eb41e9ee4babe0aa.png)
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.
解决方法:
在配置文件中将com.mysql.jdbc.Driver改为如下:即加个cj即可