sourceCode

拦截器 org.apache.ibatis.plugin.InterceptorChain

参数解析的地方 com.baomidou.mybatisplus.core.MybatisDefaultParameterHandler#setParameters

结果处理的地方 org.apache.ibatis.executor.resultset.DefaultResultSetHandler

DefaultSqlSession对curd做了种类转换 insert->update delete->update select->selete update->update

DefaultSqlSession 持有configuration + executor
Executor 持有实物,主要用到了超时

1.com.baomidou.mybatisplus.core.override.MybatisMapperProxy#invoke-------------MybatisMapperProxy里面的sqlsession就是sqlsessionTemplate
2.com.baomidou.mybatisplus.core.override.MybatisMapperMethod#execute
3.org.mybatis.spring.SqlSessionTemplate#selectOne(java.lang.String, java.lang.Object)

4.org.mybatis.spring.SqlSessionTemplate.SqlSessionInterceptor#invoke
5.org.mybatis.spring.SqlSessionUtils#getSqlSession(org.apache.ibatis.session.SqlSessionFactory, org.apache.ibatis.session.ExecutorType, org.springframework.dao.support.PersistenceExceptionTranslator)
6.org.apache.ibatis.session.SqlSessionFactory#openSession(org.apache.ibatis.session.ExecutorType)

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容