mybatis流程

BaseExecutor.query()

SimpleExecutor.doQuery()

configuration.newStatementHandler

SimpleExecutor.prepareStatement
    1,StatementHandler.prepare()
    2,StatementHandler.parameterize()   => Statement

StatementHandler.query() ->
1,PreparedStatement.execute
2,ResultSetHandler.handleResultSets()

StatementHandler
ResultSetHandler
ParameterHandler
Configuration
Executor
MappedStatement

https://www.cnblogs.com/V1haoge/p/6603926.html

https://www.cnblogs.com/chenpi/p/10498921.html

一、executor,executor类可以说是执行sql的全过程,如组装参数,sql改造,结果处理,比较广泛,但实际用的不多

二、StatementHandler,这个是执行sql的过程,可以获取到待执行的sql,可用来改造sql,如分页,分表,最常拦截的类

三、paremeterHandler,这个用来拦截sql的参数,可以自定义参数组装规则

四、resultHandler,这个用来处理结果

https://blog.csdn.net/justuseit/article/details/102783557?utm_medium=distribute.pc_relevant.none-task-blog-baidujs_baidulandingword-1&spm=1001.2101.3001.4242

https://blog.csdn.net/mrhe_/article/details/114751310?utm_medium=distribute.pc_relevant.none-task-blog-baidujs_baidulandingword-0&spm=1001.2101.3001.4242

https://blog.csdn.net/weixin_43184769/article/details/91126687?utm_medium=distribute.pc_relevant.none-task-blog-baidujs_baidulandingword-0&spm=1001.2101.3001.4242