mybatis-plus

An enhanced toolkit of Mybatis to simplify development.

License

License

Categories

Categories

MyBatis Data ORM
GroupId

GroupId

com.pig4cloud
ArtifactId

ArtifactId

mybatis-plus
Last Version

Last Version

3.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

mybatis-plus
An enhanced toolkit of Mybatis to simplify development.
Project URL

Project URL

https://github.com/baomidou/mybatis-plus
Source Code Management

Source Code Management

https://github.com/baomidou/mybatis-plus

Download mybatis-plus

How to add to project

<!-- https://jarcasting.com/artifacts/com.pig4cloud/mybatis-plus/ -->
<dependency>
    <groupId>com.pig4cloud</groupId>
    <artifactId>mybatis-plus</artifactId>
    <version>3.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.pig4cloud/mybatis-plus/
implementation 'com.pig4cloud:mybatis-plus:3.2.0'
// https://jarcasting.com/artifacts/com.pig4cloud/mybatis-plus/
implementation ("com.pig4cloud:mybatis-plus:3.2.0")
'com.pig4cloud:mybatis-plus:jar:3.2.0'
<dependency org="com.pig4cloud" name="mybatis-plus" rev="3.2.0">
  <artifact name="mybatis-plus" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.pig4cloud', module='mybatis-plus', version='3.2.0')
)
libraryDependencies += "com.pig4cloud" % "mybatis-plus" % "3.2.0"
[com.pig4cloud/mybatis-plus "3.2.0"]

Dependencies

compile (2)

Group / Artifact Type Version
com.pig4cloud : mybatis-plus-extension jar 3.2.0
com.pig4cloud : mybatis-plus-generator Optional jar 3.2.0

Project Modules

There are no modules declared in this project.

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.

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

    • Latest Version: Maven Central
    • Maven:
      <dependency>
          <groupId>com.baomidou</groupId>
          <artifactId>mybatis-plus-boot-starter</artifactId>
          <version>Latest Version</version>
      </dependency>
    • Gradle
      compile group: 'com.baomidou', name: 'mybatis-plus-boot-starter', version: 'Latest Version'
  • 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.

com.pig4cloud

baomidou

苞米豆

Versions

Version
3.2.0
0.2.0