MySQL笔记——Loading class `com.mysq

2018-07-25  本文已影响0人  麦香菌

错误:

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.

虽然结果运行没问题,但一开始就报这么一个错看着也不舒服。
后来发现原来新版的连接MySQL驱动包的driver改了。
旧版:


driver

新版:


driver

感谢

来源:《Loading class com.mysql.jdbc.Driver'. This is deprecated. The new driver class iscom.mysql.cj.jdb》
链接:https://blog.csdn.net/anaini1314/article/details/71157791

上一篇下一篇

猜你喜欢

热点阅读