异常信息:
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.
网上查了一下是mysql-connector-java包的版本问题,需要下载mysql-connector-java-5.1.47.jar
查询后,发现好多都是付费资源,然后找到了官方下载地址:https://downloads.mysql.com/archives/c-j/MySQL :: Download MySQL Connector/J (Archived Versions)
非常感谢大家的分享!