Browse Source

升级jdbc版本,不然会报错:Cannot resolve com.mysq.jdbc.Connection.ping method. Will use 'SELECT 1' instead.

yaobo 6 years ago
parent
commit
96b7d57bef
1 changed files with 2 additions and 1 deletions
  1. 2 1
      pom.xml

+ 2 - 1
pom.xml

@@ -74,7 +74,8 @@
         <dependency>
             <groupId>mysql</groupId>
             <artifactId>mysql-connector-java</artifactId>
-            <version>5.0.8</version>
+            <!--<version>5.0.8</version>-->
+            <version>5.1.25</version>
         </dependency>
         <!-- 阿里巴巴的数据库连接池 -->
         <dependency>