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
,所以将项目中的jdbc驱动换下就可以了