MyBatisPlus
MyBatisPlus
MyBatisPlus(简称MP)是基于MyBatis框架基础上开发的增强型工具,旨在简化开发、提供效率。
开发方式
- 基于MyBatis使用MyBatisPlus
- 基于Spring使用MyBatisPlus
- 基于SpringBoot使用MyBatisPlus
MyBatisPlus特性
- 无侵入:只做增强不做改变,不会对现有工程产生影响
- 强大的CRUD操作:内置通用Mapper,少量配置即可实现单表CRUD操作
- 支持Lamda:编写查询条件无需担心字段写错
- 支持主键自动生成
- 内置分页插件
- ......
MyBatisPlus的使用
- MyBatisPlus-标准数据层的开发
- Lombok:一个java类库,简化pojo的开发
- MyBatisPlus-DQL编程控制:什么是DQL?
- MyBatisPlus-DML编程控制: 什么是DML?