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>

然后问题就解决了

posted @ 2019-10-11 11:10  菩提树下的丁春秋  阅读(1450)  评论(0编辑  收藏  举报