每天早上七点三十分,准时推送干货hello~各位读者好,我是鸭血粉丝(大家可以称呼我为「阿粉」)。今天,我们继续第三篇mybatis 源码分析的讲解。上期回顾首先,我们还是回顾一下上篇文件的内容。毕竟离上次讲 mybatis已经过去了很久,汗~。我们先看下这个测试类,大家还有印象吗:publicclass MybatisTest { @Test public void testSelect() throws IOException { String resource = "mybatis-config.xml"; InputStream inputStream = Resources.getResourceAsStream(resource); SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream); SqlSession session = sqlSessionFactory.openSession(); try { FruitMapper mapper = session.getMapper(FruitMapper.class); Fruit fruit = mapper.findById(1L); System.o
………………………………