mybatis-plus

An enhanced toolkit of Mybatis to simplify development.

License

License

Categories

Categories

MyBatis Data ORM
GroupId

GroupId

com.baomidou
ArtifactId

ArtifactId

mybatis-plus-support
Last Version

Last Version

2.3.3
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-support

How to add to project

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

Dependencies

compile (4)

Group / Artifact Type Version
org.mybatis : mybatis-spring Optional jar 1.3.2
org.mybatis : mybatis Optional jar 3.4.6
org.springframework : spring-context-support Optional jar 4.3.5.RELEASE
org.springframework : spring-jdbc Optional jar 4.3.5.RELEASE

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

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

com.baomidou

baomidou

苞米豆

Versions

Version
2.3.3
2.3.2
2.3.1
2.3
2.2.0
2.1.9
2.1.8
2.1.7
2.1.6