An powerful enhanced toolkit of MyBatis for simplify development
Go to file
2024-10-22 15:51:42 +08:00
.gitee md 2020-04-20 22:14:16 +08:00
.github Update bug_report.yml 2024-09-10 16:21:46 +08:00
gradle/wrapper 发布3.5.8 2024-09-18 22:23:13 +08:00
libs 更新驱动包. 2024-06-01 22:35:00 +08:00
mybatis-plus code 2024-10-22 15:51:42 +08:00
mybatis-plus-annotation GOLDENDB数据库调整. 2024-07-10 23:07:34 +08:00
mybatis-plus-bom 调整jsqlparser支持. 2024-10-21 13:55:39 +08:00
mybatis-plus-core code 2024-10-22 15:51:42 +08:00
mybatis-plus-extension 调整jsqlparser支持. 2024-10-21 13:55:39 +08:00
mybatis-plus-generator 解耦spring兼容修改为spi方式加载 2024-10-16 17:28:19 +08:00
mybatis-plus-jsqlparser 调整jsqlparser支持. 2024-10-21 13:55:39 +08:00
mybatis-plus-spring 解耦部分包重名为 spi 2024-10-16 18:02:22 +08:00
spring-boot-starter 升级依赖. 2024-10-21 14:47:27 +08:00
.editorconfig 统一缩进风格 2018-01-11 13:56:23 +08:00
.gitignore gitignore 2020-11-10 22:05:13 +08:00
build.gradle 升级依赖. 2024-10-21 14:47:27 +08:00
changelog-temp.md 升级依赖. 2024-10-21 14:47:27 +08:00
CHANGELOG.md 发布3.5.8 2024-09-18 22:23:13 +08:00
gradle.properties 支持 solon 启动插件模块结构扩展包 2024-10-14 22:17:04 +08:00
gradlew 升级 gradle 7.1 2021-08-14 14:18:29 +08:00
gradlew.bat 升级 gradle 7.1 2021-08-14 14:18:29 +08:00
LICENSE change license 2023-07-30 15:25:28 +08:00
license.txt 更新license. 2024-05-05 23:07:01 +08:00
MPCodeStyle.xml 使用IDEA贡献代码的同学,使用该文件统一代码风格 2017-04-05 02:44:30 +08:00
README-zh.md 调整logo地址 2024-05-27 10:34:07 +08:00
README.md 调整logo地址 2024-05-27 10:34:07 +08:00
settings.gradle 调整jsqlparser支持. 2024-10-21 13:55:39 +08:00

Mybatis-Plus-Logo

Born To Simplify Development

maven code style Join the chat at https://gitter.im/baomidou/mybatis-plus

企业版 Mybatis-Mate 高级特性

添加 微信 wx153666 备注进 mp 群

不允许非法项目使用,后果自负

Special user

aizuda-Logo mall4j-Logo

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

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