赞
踩
在maven中更换依赖版本从5.1.47更换为8.0.15正常,但是报了警告: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.
按照提示中所说将mybatis配置文件中
<property name="driver" value="com.mysql.jdbc.Driver"/>
修改为
<property name="driver" value="com.mysql.cj.jdbc.Driver"/>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。