学习mybatis框架是出现了这个问题,之前看过说是ibatis的版本太低
new SqlSessionFactoryBuilder().build(reader);
构造SqlSessionFactoryBuilder本身没有参数,通过buider方法创建
新版本中 SqlSessionFactoryBuilder
中确实存在 InputStream 类型的构造方法,使用新版本看看,依赖坐标如下:
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>3.5.9</version>
</dependency>