摘要: 代码生成器 AutoGenerator 是 MyBatis-Plus 的代码生成器,通过 AutoGenerator 可以快速生成 Entity、Mapper、Mapper XML、Service、Controller 等各个模块的代码,极大的提升了开发效率。 参考 public static vo 阅读全文
posted @ 2020-09-13 14:11 Maple_XL 阅读(1180) 评论(0) 推荐(0) 编辑
摘要: 条件构造器Wrapper @Test void selectByWarpper(){ QueryWrapper<User> wrapper = new QueryWrapper<>(); wrapper.like("email","123"); List<User> users1 = userMap 阅读全文
posted @ 2020-09-13 14:08 Maple_XL 阅读(2653) 评论(0) 推荐(0) 编辑
摘要: crud 插入操作 @Test void test1(){ User user = new User(); user.setName("李白"); user.setAge(20); user.setEmail("1234568524@163.com"); int save = userMapper. 阅读全文
posted @ 2020-09-13 14:07 Maple_XL 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 快速开始 拥有 Java 开发环境以及相应 IDE 熟悉 Spring Boot 熟悉 Maven 现有一张 User 表,其表结构如下: id name age email 1 Jone 18 test1@baomidou.com 2 Jack 20 test2@baomidou.com 3 To 阅读全文
posted @ 2020-09-13 14:05 Maple_XL 阅读(190) 评论(0) 推荐(0) 编辑
摘要: MyBatis-Plus简介 MyBatis-Plus(简称 MP)是一个 MyBatis 的增强工具,在 MyBatis 的基础上只做增强不做改变,为简化开发、提高效率而生。 特性 无侵入:只做增强不做改变,引入它不会对现有工程产生影响,如丝般顺滑 损耗小:启动即会自动注入基本 CURD,性能基本 阅读全文
posted @ 2020-09-13 14:01 Maple_XL 阅读(1064) 评论(0) 推荐(0) 编辑