前言必读
1.在连接MySQL数据库时候会出现这个报错
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.
2.为什么会出现这个问题?
因为我们当前使用的数据库版本在6.0以上,原来的驱动(com.mysql.jdbc