报错如下:
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 就可以解决了