实现
doQuery()
SimpleExecutor
invoke()--增强方法wrap()--生成代理对象
PageInterceptor
Plugin
InvocationHandler
BaseExecutor
继承
pluginAll()
intercept()--分页功能plugin()setProperties()
2.调用代理对象的方法,其实是执行Plugin的invoke方法,invoke方法中再调用Interceptor的的intercept方法
1.生成代理对象
Interceptor
Executor
InterceptorChain