连接数据库出错了?
出现警告: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.了?
抛出ServerTime 异常了?
原因是:MySQL5用的驱动url是com.mysql.jdbc.Driver,
MySQL6以后用的是com.mysql.cj.jdbc.Driver。
看看源码