2020-04-20 22:14:16 +08:00
md
2020-04-20 22:14:16 +08:00
md
2020-04-20 22:14:16 +08:00
2019-11-27 20:04:41 +08:00
2019-10-18 11:44:41 +08:00
2020-03-24 14:42:09 +08:00
2019-12-04 19:51:15 +08:00
2019-10-23 20:47:32 +08:00
2018-01-11 13:56:23 +08:00
2018-11-29 15:51:32 +08:00
2020-01-17 18:00:52 +08:00
2019-01-02 13:11:00 +08:00
2019-11-27 20:04:41 +08:00
2019-11-27 20:04:41 +08:00
2019-03-06 15:34:07 +08:00
2019-04-09 22:28:18 +08:00
2019-12-21 22:27:20 +08:00
md
2019-11-27 19:53:19 +08:00
2019-04-20 16:23:41 +08:00
log
2020-03-13 13:26:41 +08:00

Mybatis-Plus-Logo

Born To Simplify Development

maven 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.

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.2.0</version>
      </dependency>
      
    • Gradle
      compile group: 'com.baomidou', name: 'mybatis-plus-boot-starter', version: '3.1.2'
      
  • 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.

Description
An powerful enhanced toolkit of MyBatis for simplify development
Readme Apache-2.0 33 MiB
Languages
Java 98.1%
Kotlin 1.3%
FreeMarker 0.5%
Fluent 0.1%