com.mysql.jdbc.Driver ==》 com.mysql.cj.jdbc.Driver

时间:2017-06-12 14:21:33   收藏:0   阅读:1570

错误信息:

SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@16676fb7] was not registered for synchronization because synchronization is not active 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


原因:

mysql 的驱动类,位置改变了

原文:http://12436449.blog.51cto.com/12426449/1934449

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!