![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mybatisplus
FengZi_0
这个作者很懒,什么都没留下…
展开
-
Springboot秒杀案例
使用技术栈:Springboot+mybatis-plus+redis本文介绍了秒杀案例入门级的案例,欢迎各位大佬观看!1.配置环境1.导入依赖<dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId&原创 2022-01-03 21:34:57 · 786 阅读 · 0 评论 -
Shiro入门案例
自我记录原创 2021-12-07 19:15:39 · 912 阅读 · 0 评论 -
Mybatis-Plus(自动填充策略)
1.日期自动填充在实体类上加上@TableField注解@TableField(fill=FieldFill.INSERT) private Date createTime; @TableField(fill=FieldFill.INSERT_UPDATE) private Date updateTime;编写处理器来处理这个策略package cn.hmc.demo.handler;import com.baomidou.mybatisplus.core.h原创 2021-12-07 19:08:28 · 172 阅读 · 0 评论 -
Mybatis-plus(逻辑删除)
1.逻辑删除1.在数据库中增加一个deleted字段,默认值设置为02.在实体类中添加属性@TableLogicprivate Integer deleted;3.配置组件package cn.hmc.demo.config;import com.baomidou.mybatisplus.core.injector.DefaultSqlInjector;import com.baomidou.mybatisplus.core.injector.ISqlInjector..原创 2021-12-07 19:05:11 · 580 阅读 · 0 评论