报错信息:
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.cj.jdbc.ConnectionImpl@53ca01a2
解决方法:
将 new com.mysql.jdbc.Driver();
改成 new com.mysql.cj.jdbc.Driver();