错误描述:
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.
报错原因:
数据库驱动com.mysql.jdbc.Driver已经被弃用,应当使用新的驱动com.mysql.cj.jdbc.Driver
解决方案:
在配置文件中将com.mysql.jdbc.Driver 改为 com.mysql.cj.jdbc.Driver即可
IDEA报错:Loading class `com.mysql.jdbc.Driver‘. This is deprecated. The new driver class is `com.mysql
最新推荐文章于 2024-01-29 17:06:46 发布