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.

 

转载于:https://www.cnblogs.com/tcdxx/p/6091519.html

你可能感兴趣的:(mybatis框架源码学习)