错误描述:
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》对你有帮助,请点赞、收藏,并留下你的观点哦!