错误信息: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.
连接数据库使用MySQL8.0.2版本。出现上述原因是数据库连接驱动更改了
以前:
jdbc.driverClass = com.mysql.dbc.Driver
新版本:
jdbc.driverClass = com.mysql.cj.jdbc.Driver
这个错误就解决了。