<p align="center">
<a href="https://github.com/baomidou/mybatis-plus">
<img alt="Mybatis-Plus-Logo" src="https://raw.githubusercontent.com/baomidou/logo/master/mybatis-plus-logo-new-mini.png">
</a>
</p>
<p align="center">
Born To Simplify Development
</p>
<p align="center">
<a href="https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.baomidou%22%20AND%20a%3A%22mybatis-plus%22">
<img alt="maven" src="https://img.shields.io/maven-central/v/com.baomidou/mybatis-plus.svg?style=flat-square">
</a>
<a href="https://www.apache.org/licenses/LICENSE-2.0">
<img alt="code style" src="https://img.shields.io/badge/license-Apache%202-4EB1BA.svg?style=flat-square">
</a>
<a href="https://gitter.im/baomidou/mybatis-plus?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge">
<img alt="Join the chat at https://gitter.im/baomidou/mybatis-plus" src="https://badges.gitter.im/baomidou/mybatis-plus.svg">
</a>
</p>
## 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
- [Documentation](https://mybatis.plus)
- [Samples](https://github.com/baomidou/mybatis-plus-samples.git)
- [Showcase](https://github.com/baomidou/awosome-mybaits-plus)
## 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:
```xml
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.2.0</version>
</dependency>
```
- Gradle
```groovy
compile group: 'com.baomidou', name: 'mybatis-plus-boot-starter', version: '3.1.2'
```
- Modify mapper file extends BaseMapper interface
```java
public interface UserMapper extends BaseMapper<User> {
}
```
- Use it
```java
List<User> userList = userMapper.selectList(
new QueryWrapper<User>()
.lambda()
.ge(User::getAge, 18)
);
```
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://mybatis.plus).
## 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.
没有合适的资源?快使用搜索试试~ 我知道了~
baomidou-mybatis-plus-3.0.zip
共641个文件
java:540个
xml:21个
sql:13个
需积分: 37 15 下载量 183 浏览量
2020-06-13
08:38:48
上传
评论
收藏 5.38MB ZIP 举报
温馨提示
Mybatis-plus在框架中的重要性越来越高,功能逐步强大,为了避免工作中可能出现的坑,阅读源码是重要解决方法
资源推荐
资源详情
资源评论
收起资源包目录
baomidou-mybatis-plus-3.0.zip (641个子文件)
gradlew.bat 3KB
entity.java.btl 4KB
entity.kt.btl 3KB
mapper.xml.btl 1KB
controller.java.btl 1KB
serviceImpl.java.btl 665B
service.java.btl 385B
mapper.java.btl 383B
example.db 10KB
.editorconfig 146B
spring.factories 747B
spring.factories 358B
entity.java.ftl 4KB
entity2.java.ftl 4KB
entity.kt.ftl 3KB
mapper.xml.ftl 1KB
controller.java.ftl 951B
serviceImpl.java.ftl 654B
service.java.ftl 374B
mapper.java.ftl 372B
dto.java.ftl 299B
.gitignore 241B
build.gradle 11KB
build.gradle 976B
build.gradle 935B
build.gradle 595B
build.gradle 556B
build.gradle 474B
build.gradle 324B
settings.gradle 268B
build.gradle 53B
gradlew 6KB
ojdbc-11.2.0.3-jdk16.jar 2.59MB
jdbcDriver-18.jar 1.34MB
kingbase8-8.2.0.jar 786KB
gradle-wrapper.jar 57KB
ConfigBuilder.java 32KB
MybatisMapperAnnotationBuilder.java 30KB
StringUtils.java 28KB
MybatisSqlSessionFactoryBean.java 27KB
MybatisXMLConfigBuilder.java 20KB
TableNameParserTest.java 20KB
H2UserTest.java 20KB
TableInfoHelper.java 18KB
TableFieldInfo.java 17KB
IllegalSQLInterceptor.java 15KB
AbstractWrapper.java 15KB
IOUtils.java 15KB
MybatisPlusAutoConfiguration.java 15KB
AbstractMethod.java 15KB
IService.java 14KB
TableInfo.java 14KB
MySqlKeyWordsHandler.java 13KB
AbstractTemplateEngine.java 13KB
PaginationInterceptor.java 13KB
MybatisCachingExecutor.java 12KB
StrategyConfig.java 12KB
MetaObjectHandler.java 11KB
TenantSqlParser.java 11KB
WrapperTest.java 11KB
CacheTest.java 10KB
MybatisParameterHandler.java 10KB
ServiceImpl.java 10KB
ReflectionKit.java 10KB
MybatisMapperMethod.java 10KB
AbstractChainWrapper.java 10KB
TableNameParser.java 10KB
MysqlGenerator.java 9KB
H2UserMapperTest.java 8KB
Page.java 8KB
Model.java 8KB
Func.java 8KB
JsqlParserCountOptimizeTest.java 8KB
MybatisEnumTypeHandlerTest.java 8KB
MybatisBatchExecutor.java 8KB
SqlRunner.java 7KB
ClassUtils.java 7KB
PostgreSQLGenerator.java 7KB
KingbaseESGenerator.java 7KB
AutoGenerator.java 7KB
SQLServerGenerator.java 7KB
Wrappers.java 7KB
Compare.java 7KB
ActiveRecordTest.java 7KB
BaseMapper.java 7KB
MysqlTestDataMapperTest.java 7KB
MybatisPlusConfig.java 6KB
Sequence.java 6KB
MybatisEnumTypeHandler.java 6KB
ReflectionKitTest.java 6KB
MybatisConfigurationTest.java 6KB
SqlRunnerInjector.java 6KB
OptimisticLockerInterceptor.java 6KB
MybatisPlusConfig.java 6KB
MybatisParameterHandlerTest.java 6KB
MybatisMapperAnnotationBuilderTest.java 6KB
MetaObjectHandlerTest.java 6KB
SelectCountDistinctTest.java 6KB
DMGenerator.java 6KB
MybatisConfiguration.java 6KB
共 641 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7
资源评论
jianmin0920
- 粉丝: 562
- 资源: 18
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功