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

How to add to project

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

Dependencies

compile (3)

Group / Artifact Type Version
com.baomidou : mybatis-plus-support jar 2.3.3
org.apache.velocity : velocity-engine-core Optional jar 2.0
org.freemarker : freemarker Optional jar 2.3.9

test (7)

Group / Artifact Type Version
com.microsoft.sqlserver » sqljdbc4 jar 4.0
org.postgresql : postgresql jar 9.4.1212
com.oracle : ojdbc14 jar 10.2.0.5.0
com.h2database : h2 jar 1.4.194
mysql : mysql-connector-java jar 5.1.38
ch.qos.logback : logback-classic jar 1.2.2
junit : junit jar 4.12

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