# mybatis_plus **Repository Path**: datong2zou/mybatis_plus ## Basic Information - **Project Name**: mybatis_plus - **Description**: mybatis-plus进阶 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-31 - **Last Updated**: 2021-03-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # mybatis_plus #### 介绍 mybatis-plus进阶 #### 软件架构 **什么是Mybatis-plus?** [MyBatis-Plus (opens new window)](https://github.com/baomidou/mybatis-plus)(简称 MP)是一个 [MyBatis (opens new window)](http://www.mybatis.org/mybatis-3/)的增强工具,在 MyBatis 的基础上只做增强不做改变,为简化开发、提高效率而生。 #### 使用说明 需求:SpringBoot 整合 MyBatis-Plus,并实现根据Id查询对象功能。 1. 准备数据库表 2. 创建工程 引入mybatis-plus等相关依赖 3. application.yml配置 DataSource 4. 准备数据库表对应实体对象 5. 创建dao接口继承BaseMapper 具备CRUD功能 6.service controller (省略了。。。) 7.启动类 8.测试类 注入dao接口 调用dao继承父接口中方法 跟Mybatis区别: 1.不用写映射文件 2.dao中常见的crud方法不用再写 3.dao继承BaseMapper 4.实体对象加上@Table注解 指定表名映射 #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)