通过sqlSession.getMapper();方法获取映射的接口及方法
sqlSession调用Configuration的getMapper方法,方法中使用了mapperRegistry.getMapper方法,通过mapperRegistry中的hashMap集合knowMappers的key获取到value-mapperProxyFactory。
getMapper()方法是通过configuration类调用
MapperRegistry应该是注册Mapper接口的类

mapperProxyFactory中使用concurrentHashMap做接口方法的缓存

再搜下Configuration中的添加接口映射方法,发现只有这三个方法用到,

待续
mybatis接口映射
原文:https://www.cnblogs.com/gqymy/p/11390845.html