![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
MybatisPlus
Kilig Zong 的MybatisPlus学习之旅
kiligggggggg
stay hungry stay foolish
展开
-
MybatisPlus的增删改查以及特点
MybatisPlus的增删改查以及特点1.分布式系统唯一ID生成方案系统唯一ID是我们在设计一个系统的时候常常会遇见的问题,也常常为这个问题而纠结。生成ID的方法有很多,适应不同的场景、需求以及性能要求。所以有些比较复杂的系统会有多个ID生成的策略。以下链接是非常全面的介绍解决方案,在我们解决多个数据库的id唯一性的问题https://www.cnblogs.com/haoxinyue/p/5208136.html2.MP的主键自增策略2.1 ASSIGN_IDMyBatis-Plus默认的主原创 2020-10-29 01:24:46 · 486 阅读 · 2 评论 -
MybatisPlus的初步使用
MybatisPlus的初步使用在springBoot里面使用MybatisPlus的注意事项1.在项目里面我们的dao层的dao不需要自己写SQL语句,但是需要在mapper继承一个接口,以及上一个注解@Repository,具体如下代码package com.atguigu.mapper;import com.atguigu.entity.User;import com.baomidou.mybatisplus.core.mapper.BaseMapper;import org.sprin原创 2020-10-28 09:04:57 · 737 阅读 · 4 评论