mybatis框架源码学习

转:来自https://my.oschina.net/u/1458864/blog/293659

摘要:初始化mybatis,所有的配置都在configuation 对象中使用mybatis,从sqlsessionfactory 工厂中获取sqlsession,从configuation对象中获取mapper对象,并返回结果,mybatis在加载mapper的时候对mapper接口的注解进行解析,重要的几个包:io,session,builder,mapper(annotations,binding),executor。

 

从使用入手,mybatis使用的三把斧 sqlsessionfactoryBuilder ,sqlsessionfactory,sqlsession.

 

posted on 2016-11-22 22:49  大兴兴  阅读(75)  评论(0编辑  收藏  举报

导航