java.sql.SQLException: validateConnection false
2019-10-11 11:08:18.884 ERROR 16396 --- [Create-24816129] com.alibaba.druid.pool.DruidDataSource : create connection error java.sql.SQLException: validateConnection false at com.alibaba.druid.pool.DruidAbstractDataSource.validateConnection(DruidAbstractDataSource.java:1199) ~[druid-1.0.5.jar:1.0.5] at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1422) ~[druid-1.0.5.jar:1.0.5] at com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:1649) ~[druid-1.0.5.jar:1.0.5]
修改下版本就好了
<dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.0.2</version> </dependency>
然后问题就解决了
笔记转移,由于在有道云的笔记转移,写的时间可能有点久,如果有错误的地方,请指正