最近在搭建一个springboot+mybatis的项目的时候遇到的一个问题:
错误提示信息:
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.
这是原项目配置

需要改成

在搭建SpringBoot结合MyBatis的项目中,遇到了关于MySQL驱动类加载的警告信息。原项目使用了已弃用的'com.mysql.jdbc.Driver',现需更改为新的驱动类'com.mysql.cj.jdbc.Driver',以避免警告并确保项目正常运行。
1万+

被折叠的 条评论
为什么被折叠?



