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-extension
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-extension

How to add to project

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

Dependencies

compile (10)

Group / Artifact Type Version
com.pig4cloud : mybatis-plus-core jar 3.2.0
com.pig4cloud : mybatis-spring jar 0.0.2
org.jetbrains.kotlin : kotlin-stdlib-jdk8 Optional jar 1.3.10
org.jetbrains.kotlin : kotlin-reflect Optional jar 1.3.10
org.springframework : spring-context-support Optional jar 5.1.6.RELEASE
org.springframework : spring-jdbc Optional jar 5.1.6.RELEASE
org.slf4j : slf4j-api Optional jar 1.7.25
p6spy : p6spy Optional jar 3.8.1
com.fasterxml.jackson.core : jackson-databind Optional jar 2.9.9
com.alibaba : fastjson Optional jar 1.2.59

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