springboot2.1mysql驱动类弃用

 

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.

我用的是springboot2.1的,运行的时候报错,说mysql的这个驱动类已经弃用了,更换提示的com.mysql.cj.jdbc.Driver即可

 

 

 

 

posted @ 2018-12-19 15:28  sflkj  阅读(1771)  评论(0编辑  收藏  举报