错误信息:
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 的驱动类,位置改变了
转载于:https://blog.51cto.com/12436449/1934449
本文解决了一个关于MySQL驱动类更改的问题,详细介绍了如何将过时的com.mysql.jdbc.Driver更新为新的com.mysql.cj.jdbc.Driver,以确保应用程序的正常运行。
8155

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



