Loading

随笔分类 -  Mybatis及Plus

摘要:Springboot项目中使用MybatisPlus代码生成器 pom文件配置信息 <!--引入springboot父工程版本信息--> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-star 阅读全文
posted @ 2020-08-11 20:41 codeduck 阅读(1912) 评论(0) 推荐(0)
摘要:PS:所有示例中的userService接口 为 IUserService继承了MP中的 IService 1. QueryWrapper 说明: 继承自 AbstractWrapper ,自身的内部属性 entity 也用于生成 where 条件 及 LambdaQueryWrapper, 可以通 阅读全文
posted @ 2020-08-04 15:58 codeduck 阅读(34929) 评论(0) 推荐(3)
摘要:IService介绍接口 使用MybatisPlus代码生成器自动生成IUserService接口并继承IService 查看IService接口已经封装了诸多方法 并由ServiceImpl继承并实现 public class ServiceImpl<M extends BaseMapper<T> 阅读全文
posted @ 2020-08-04 11:15 codeduck 阅读(3179) 评论(0) 推荐(0)