数据写入数据库时出现如下报错

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即可

猜你喜欢

转载自blog.csdn.net/qq_51764257/article/details/129671364