今天在看MyBatis时,准备写一个Demo来验证看完TypHandler源码后的想法,可是demo刚一跑起来就报下面的错了。

MyBatis+Oracle时出现的错误: Method oracle/jdbc/driver/OracleResultSetImpl.isClosed()Z is abstract

  随手在网上搜了一遍,都说是版本不匹配;就是不明白怎么个不匹配法;可是好奇心驱使我就想看看怎么个不匹配法。

先把我自己的代码贴在这。

 maven依赖:

 1  <dependency>
 2             <groupId>mysql</groupId>
 3             <artifactId>mysql-connector-java</artifactId>
 4             <version>8.0.18</version>
 5         </dependency>
 6 
 7         <dependency>
 8             <groupId>com.oracle</groupId>
 9             <artifactId>ojdbc14</artifactId>
10             <version>10.2.0.4.0</version>
11         </dependency>
12         <!--<dependency>
13             <groupId>com.oracle</groupId>
14             <artifactId>ojdbc6</artifactId>
15             <version>1.0</version>
16         </dependency>-->
17 
18         <dependency>
19             <groupId>org.mybatis</groupId>
20             <artifactId>mybatis</artifactId>
21             <version>3.5.3</version>
22         </dependency>
View Code

相关文章: