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即可