报错:
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