diff --git a/README.md b/README.md index e24fc729c..b80e1474e 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,8 @@ ## 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. +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 @@ -53,23 +54,24 @@ MyBatis-Plus is an powerful enhanced toolkit of MyBatis for simplify development ## 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 +- 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](https://img.shields.io/maven-central/v/com.baomidou/mybatis-plus.svg)](https://search.maven.org/search?q=g:com.baomidou%20a:mybatis-*) +- Add MyBatis-Plus dependency + - Latest + Version: [![Maven Central](https://img.shields.io/maven-central/v/com.baomidou/mybatis-plus.svg)](https://search.maven.org/search?q=g:com.baomidou%20a:mybatis-*) - Maven: - SpringBoot2 ```xml @@ -87,6 +89,24 @@ MyBatis-Plus is an powerful enhanced toolkit of MyBatis for simplify development Latest Version ``` + - `^3.9.6` may need additional citations + - jdk8+ + ```xml + + com.baomidou + mybatis-plus-jsqlparser + Latest Version + + ``` + - jdk8 + ```xml + + com.baomidou + mybatis-plus-jsqlparser-4.9 + Latest Version + + ``` + - Gradle - SpringBoot2 ```groovy @@ -96,13 +116,13 @@ MyBatis-Plus is an powerful enhanced toolkit of MyBatis for simplify development ```groovy compile group: 'com.baomidou', name: 'mybatis-plus-spring-boot3-starter', version: 'Latest Version' ``` -- Modify mapper file extends BaseMapper interface +- Modify mapper file extends BaseMapper interface - ```java - public interface UserMapper extends BaseMapper { + ```java + public interface UserMapper extends BaseMapper { - } - ``` + } + ``` - Use it ``` java @@ -112,13 +132,15 @@ MyBatis-Plus is an powerful enhanced toolkit of MyBatis for simplify development .ge(User::getAge, 18) ); ``` - MyBatis-Plus will execute the following SQL + MyBatis-Plus will execute the following SQL ```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](https://baomidou.com). +> This showcase is just a small part of MyBatis-Plus features. If you want to learn more, please refer to +> the [documentation](https://baomidou.com). ## License -MyBatis-Plus is under the Apache 2.0 license. See the [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0) file for details. +MyBatis-Plus is under the Apache 2.0 license. See the [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0) +file for details.