The Wayback Machine - https://web.archive.org/web/20190522043043/https://github.com/baomidou/mybatis-plus
Skip to content
An powerful enhanced toolkit of MyBatis for simplify development
Branch: 3.0
Clone or download
Latest commit 9be6ac1 May 14, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitee update README.md May 7, 2019
.github update README.md May 7, 2019
gradle/wrapper 升级Gradle 5.3.1 Apr 1, 2019
libs 添加oracle包 Nov 13, 2018
mybatis-plus-annotation add a new fieldStrategy type,SQL will not be added under certain cond… May 10, 2019
mybatis-plus-boot-starter 发布 3.1.2.2-SNAPSHOT May 4, 2019
mybatis-plus-core fix(AbstractWrapper.java): 修复 lambda 表达式在 order、groupBy 只有条件一个时引起的类型推… May 13, 2019
mybatis-plus-dts 添加存在判断忽略 Apr 23, 2019
mybatis-plus-extension apply plugin: 'kotlin' May 14, 2019
mybatis-plus-generator SqliteTypeConvert去掉set类型 May 8, 2019
mybatis-plus fix(AbstractWrapper.java): 修复 lambda 表达式在 order、groupBy 只有条件一个时引起的类型推… May 13, 2019
.editorconfig 统一缩进风格 Jan 11, 2018
.gitignore 随便优化一下 Nov 29, 2018
CHANGELOG.md add: v3.1.1 change log May 13, 2019
LICENSE License 更新 Mar 6, 2019
MPCodeStyle.xml 使用IDEA贡献代码的同学,使用该文件统一代码风格 Apr 4, 2017
README-zh.md add 996ICU license Apr 1, 2019
README.md update README.md May 7, 2019
build.gradle Merge branch 'master' into 3.0 May 8, 2019
gradle.properties 发布 `3.0.8.1-SNAPSHOT` Jan 2, 2019
gradlew 升级gradle5.1. Jan 9, 2019
gradlew.bat 升级gradle5.1. Jan 9, 2019
license.txt add license_996 Apr 9, 2019
license_996.txt add license_996 Apr 9, 2019
settings.gradle 分布式事务改进一下 Apr 20, 2019

README.md

Mybatis-Plus-Logo

Born To Simplify Development

maven 996icu code style Join the chat at https://gitter.im/baomidou/mybatis-plus

What is MyBatis-Plus?

MyBatis-Plus is an powerful enhanced toolkit of MyBatis for simplify development. This toolkit provides some efficient, useful, out-of-the-box features for MyBatis, use it can effectively save your development time.

Links

Features

  • Fully compatible with MyBatis
  • Auto configuration on startup
  • Out-of-the-box interfaces for operate database
  • Powerful and flexible where condition wrapper
  • Multiple strategy to generate primary key
  • Lambda-style API
  • Almighty and highly customizable code generator
  • Automatic paging operation
  • SQL Inject defense
  • Support active record
  • Support pluggable custom interface
  • Build-in many useful extensions

Getting started

  • Add MyBatis-Plus dependency

    • Maven:
      <dependency>
          <groupId>com.baomidou</groupId>
          <artifactId>mybatis-plus-boot-starter</artifactId>
          <version>3.1.0</version>
      </dependency>
    • Gradle
      compile group: 'com.baomidou', name: 'mybatis-plus-boot-starter', version: '3.1.0'
  • Modify mapper file extends BaseMapper interface

    public interface UserMapper extends BaseMapper<User> {
    
    }
  • Use it

    List<User> userList = userMapper.selectList(
            new QueryWrapper<User>()
                    .lambda()
                    .ge(User::getAge, 18)
    );

    MyBatis-Plus will execute the following SQL

    SELECT * FROM user WHERE age >= 18

This showcase is just a small part of MyBatis-Plus features. If you want to learn more, please refer to the documentation.

License

MyBatis-Plus is under the Apache 2.0 license. See the Apache License 2.0 file for details.

You can’t perform that action at this time.