随笔分类 - mybatis
摘要:Configuration : 由 mybatis-config.xml解析产生的配置对象 MapperRegistry : mapper注册中心 InterceptorChain : 用户自定义拦截器的执行链,能够拦截 Executor、StatementHandler、ParameterHand
阅读全文
摘要:MapperProxyFactory->MapperProxy->MapperMethod->MapperStatement->StatementHandler->ResultSetHandler,ParameterHandler
阅读全文
摘要:SqlSession.getMapper -> configuration.getMapper -> mapperRegistry.getMapper -> mapperProxyFactory.newInstance 返回mapper的代理对象 mapperProxy, 接口的查询、更新等方法通过
阅读全文