摘要: 一、Springboot 配置分页插件 @Configuration public class MybatisPlusConfig { /*分页插件*/ @Bean public MybatisPlusInterceptor mybatisPlusInterceptor() { MybatisPlu 阅读全文
posted @ 2023-03-11 22:48 向大海 阅读(1253) 评论(0) 推荐(0) 编辑
摘要: wapper介绍: 用于条件封装,生成 sql 的 where 条件 |--Wrapper : 条件构造抽象类,最顶端父类 |--AbstractWrapper : 用于查询条件封装,生成 sql 的 where 条件 |--QueryWrapper : 查询条件封装 |--UpdateWrappe 阅读全文
posted @ 2023-03-11 20:08 向大海 阅读(105) 评论(0) 推荐(0) 编辑
摘要: Save(添加) // 插入一条记录(选择字段,策略插入) boolean save(T entity); // 插入(批量) boolean saveBatch(Collection<T> entityList); // 插入(批量) boolean saveBatch(Collection<T> 阅读全文
posted @ 2023-03-11 20:08 向大海 阅读(47) 评论(0) 推荐(0) 编辑