2013年10月16日

MyBatis源码学习笔记(三)

摘要: 之前学习到 DefaultSqlSessionFactory中的 private SqlSession openSessionFromDataSource(ExecutorType execType, TransactionIsolationLevel level, boolean autoCommit) { Transaction tx = null; try { fina... 阅读全文

posted @ 2013-10-16 23:40 错误王 阅读(321) 评论(0) 推荐(0)

MyBatis源码学习笔记(二)

摘要: 参考文档中介绍Mybatis的中心是SqlSessionFactory.并举出一个简单的生成方法:String resource = “org/mybatis/example/mybatis-config.xml”;InputStream inputStream = Resources.getResourceAsStream(resource);SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().bulid(inputStream);文档列举的基本xml如下:configuration ... 阅读全文

posted @ 2013-10-16 00:00 错误王 阅读(563) 评论(0) 推荐(0)

导航