Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 385 Bytes

3-proxy.md

File metadata and controls

15 lines (9 loc) · 385 Bytes

Mybatis 动态代理

获取代理类流程

获取Mapper代理类的时序图如下:

image

重点说下MapperProxy类,声明如下:

public class MapperProxy<T> implements InvocationHandler, Serializable

获取到 MapperProxy 之后,根据调用不同的方法,会将最终的参数传递给 SqlSession