随笔分类 -  mybatis

摘要:Configuration : 由 mybatis-config.xml解析产生的配置对象 MapperRegistry : mapper注册中心 InterceptorChain : 用户自定义拦截器的执行链,能够拦截 Executor、StatementHandler、ParameterHand 阅读全文
posted @ 2018-03-13 10:26 liron 阅读(499) 评论(0) 推荐(0)
摘要:MapperProxyFactory->MapperProxy->MapperMethod->MapperStatement->StatementHandler->ResultSetHandler,ParameterHandler 阅读全文
posted @ 2018-03-07 16:33 liron 阅读(95) 评论(0) 推荐(0)
摘要:SqlSession.getMapper -> configuration.getMapper -> mapperRegistry.getMapper -> mapperProxyFactory.newInstance 返回mapper的代理对象 mapperProxy, 接口的查询、更新等方法通过 阅读全文
posted @ 2018-03-07 16:06 liron 阅读(544) 评论(0) 推荐(0)