@startuml
SqlSession -> SqlSession : getMapper()
SqlSession -> Configuration: getMapper(type,this) //mapper接口，sqlsession实例
Configuration -> MapperRegistor: getMapper() //通过Configuration初始化的时候，维护的MapperRegistor注册器获取代理类
MapperRegistor -> MapperProxyFactory: newInstancs()
MapperProxyFactory -> MapperProxy: new MapperProxy //动态代理类
MapperProxy --> MapperProxyFactory: return MapperProxy
MapperProxyFactory --> SqlSession : return MapperProxy
SqlSession -> MapperProxy: selectXXX 执行Mapper映射的方法
MapperProxy -> MapperMethod: invoke //执行 构建MapperMethod
MapperMethod -> MapperMethod: execute() //执行， 转换参数为对应，执行sqlsession 对应的sql方法
@endUml
