Programmer DD
Programmer DD
Jun 9, 2019 · Backend Development

Inside MyBatis: How SqlSessionFactory, Executor, and Mappers Work Together

This article walks through MyBatis' internal workflow—from parsing the global XML configuration and building the SqlSessionFactory, to creating a SqlSession, executing a query via the Executor, handling caching, and finally mapping results—illustrated with key code snippets and a diagram.

ExecutorJavaMyBatis
0 likes · 16 min read
Inside MyBatis: How SqlSessionFactory, Executor, and Mappers Work Together