The MyBatis SQL mapper framework makes it easier to use a relational database with object-oriented applications. MyBatis couples objects with stored procedures or SQL statements using a XML descriptor or annotations. Simplicity is the biggest advantage of the MyBatis data mapper over object relational mapping tools.
分为基础支持层、核心处理层和接口层
- 接口层 : SqlSession(SqlSession)
- 核心处理层 : 配置解析(Configuration) 参数映射 SQL解析 SQL执行 结果集映射 插件
- 基础支持层 : 数据源模块 事务管理模块(Transaction) 缓存模块 Binging模块(MapperProxy) 反射模块 类型转换 日志模块 资源加载 解析器模块