问题描述:spring连接mysql项目运行出现错误Loading class com.mysql.jdbc.Driver'. This is deprecated. The new driver class iscom.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
解决方案:
方案1
非mybatis环境看这里 找到配置sql资源的属性文件
再运行一次看看把~
方案2 mybatis环境看这里 找到mybatis-config.xml(也就是mybatis配置文件)
再运行试试