{"id":13458842,"url":"https://github.com/baomidou/mybatis-plus","last_synced_at":"2025-05-12T18:45:37.968Z","repository":{"id":37359568,"uuid":"65987043","full_name":"baomidou/mybatis-plus","owner":"baomidou","description":"An powerful enhanced toolkit of MyBatis for simplify development","archived":false,"fork":false,"pushed_at":"2025-04-27T15:35:53.000Z","size":30860,"stargazers_count":16820,"open_issues_count":70,"forks_count":4370,"subscribers_count":81,"default_branch":"3.0","last_synced_at":"2025-05-03T01:55:20.826Z","etag":null,"topics":["mybatis","mybatis-plus","mybatis-spring","mysql","orm","orm-framework","postgresql","toolkit"],"latest_commit_sha":null,"homepage":"https://baomidou.com","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/baomidou.png","metadata":{"files":{"readme":"README-zh.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-08-18T10:06:53.000Z","updated_at":"2025-05-02T12:51:43.000Z","dependencies_parsed_at":"2023-10-16T22:48:53.111Z","dependency_job_id":"92d01f6d-36ef-45a7-9b32-675056608521","html_url":"https://github.com/baomidou/mybatis-plus","commit_stats":{"total_commits":5272,"total_committers":238,"mean_commits":22.15126050420168,"dds":0.7534142640364188,"last_synced_commit":"6d759d9ce0b30add14910d8d99b9b97467dc8469"},"previous_names":[],"tags_count":73,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baomidou%2Fmybatis-plus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baomidou%2Fmybatis-plus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baomidou%2Fmybatis-plus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baomidou%2Fmybatis-plus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baomidou","download_url":"https://codeload.github.com/baomidou/mybatis-plus/tar.gz/refs/heads/3.0","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252526610,"owners_count":21762538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mybatis","mybatis-plus","mybatis-spring","mysql","orm","orm-framework","postgresql","toolkit"],"created_at":"2024-07-31T09:00:58.232Z","updated_at":"2025-05-05T15:51:27.567Z","avatar_url":"https://github.com/baomidou.png","language":"Java","funding_links":[],"categories":["Java","数据库开发","Recently Updated","JAVA相关","Projects","Resource"],"sub_categories":["[Mar 08, 2025](/content/2025/03/08/README.md)","工具","ORM","Official Resources"],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/baomidou/mybatis-plus\" target=\"_blank\"\u003e\n   \u003cimg alt=\"Mybatis-Plus-Logo\" src=\"https://raw.githubusercontent.com/baomidou/logo/master/mybatis-plus-logo-new-mini.png\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  为简化开发工作、提高生产率而生\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://search.maven.org/search?q=g:com.baomidou%20a:mybatis-*\"\u003e\n    \u003cimg alt=\"maven\" src=\"https://img.shields.io/maven-central/v/com.baomidou/mybatis-plus.svg?style=flat-square\"\u003e\n  \u003c/a\u003e\n\n  \u003ca href=\"https://www.apache.org/licenses/LICENSE-2.0\"\u003e\n    \u003cimg alt=\"code style\" src=\"https://img.shields.io/badge/license-Apache%202-4EB1BA.svg?style=flat-square\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n[企业版 Mybatis-Mate 高级特性](https://gitee.com/baomidou/mybatis-mate-examples)\n\n# 简介 | Intro\n\nMybatis 增强工具包 - 只做增强不做改变，简化`CRUD`操作\n\n添加 `微信 wx153666` 备注进 mp 群\n\n\u003e 不允许非法项目使用，后果自负\n\n# 特别用户\n\n\u003cp\u003e\n  \u003ca href=\"https://doc.flowlong.com?from=mp\" target=\"_blank\"\u003e\n   \u003cimg alt=\"aizuda-Logo\" src=\"https://foruda.gitee.com/images/1715955628416785121/954c16ef_12260.png\" width=\"160px\" height=\"50px\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://gitee.com/gz-yami/mall4j?from=mp\" target=\"_blank\"\u003e\n   \u003cimg alt=\"mall4j-Logo\" src=\"https://foruda.gitee.com/images/1716776021837872678/87883b39_12260.gif\" width=\"160px\" height=\"50px\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"http://github.crmeb.net/u/MyBatis-Plus\" target=\"_blank\"\u003e\n   \u003cimg alt=\"crmeb-Logo\" src=\"https://foruda.gitee.com/images/1685339553088166856/b0a6b1a4_12260.gif\" width=\"160px\" height=\"50px\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# 依赖引用\n\n- Latest\n  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-*)\n    - Maven:\n    - SpringBoot2\n      ```xml\n      \u003cdependency\u003e\n          \u003cgroupId\u003ecom.baomidou\u003c/groupId\u003e\n          \u003cartifactId\u003emybatis-plus-boot-starter\u003c/artifactId\u003e\n          \u003cversion\u003eLatest Version\u003c/version\u003e\n      \u003c/dependency\u003e\n      ```\n    - SpringBoot3\n      ```xml\n      \u003cdependency\u003e\n        \u003cgroupId\u003ecom.baomidou\u003c/groupId\u003e\n        \u003cartifactId\u003emybatis-plus-spring-boot3-starter\u003c/artifactId\u003e\n        \u003cversion\u003eLatest Version\u003c/version\u003e\n      \u003c/dependency\u003e\n      ```\n    - `^3.5.9` 你可能需要额外的引用\n        - jdk11+\n      ```xml\n      \u003cdependency\u003e\n        \u003cgroupId\u003ecom.baomidou\u003c/groupId\u003e\n        \u003cartifactId\u003emybatis-plus-jsqlparser\u003c/artifactId\u003e\n        \u003cversion\u003eLatest Version\u003c/version\u003e\n      \u003c/dependency\u003e\n      ```\n        - jdk8\n      ```xml\n      \u003cdependency\u003e\n        \u003cgroupId\u003ecom.baomidou\u003c/groupId\u003e\n        \u003cartifactId\u003emybatis-plus-jsqlparser-4.9\u003c/artifactId\u003e\n        \u003cversion\u003eLatest Version\u003c/version\u003e\n      \u003c/dependency\u003e\n      ```\n        - Gradle\n        - SpringBoot2\n          ```groovy\n          compile group: 'com.baomidou', name: 'mybatis-plus-boot-starter', version: 'Latest Version'\n          ```\n        - SpringBoot3\n          ```groovy\n          compile group: 'com.baomidou', name: 'mybatis-plus-spring-boot3-starter', version: 'Latest Version'\n          ```\n\n# 优点 | Advantages\n\n- **无侵入**：Mybatis-Plus 在 Mybatis 的基础上进行扩展，只做增强不做改变，引入 Mybatis-Plus 不会对您现有的 Mybatis\n  构架产生任何影响，而且 MP 支持所有 Mybatis 原生的特性\n- **依赖少**：仅仅依赖 Mybatis 以及 Mybatis-Spring\n- **损耗小**：启动即会自动注入基本CURD，性能基本无损耗，直接面向对象操作\n- **通用CRUD操作**：内置通用 Mapper、通用 Service，仅仅通过少量配置即可实现单表大部分 CRUD 操作，更有强大的条件构造器，满足各类使用需求\n- **多种主键策略**：支持多达4种主键策略（内含分布式唯一ID生成器），可自由配置，完美解决主键问题\n- **支持ActiveRecord**：支持 ActiveRecord 形式调用，实体类只需继承 Model 类即可实现基本 CRUD 操作\n- **支持代码生成**：采用代码或者 Maven 插件可快速生成 Mapper 、 Model 、 Service 、 Controller\n  层代码，支持模板引擎，更有超多自定义配置等您来使用（P.S. 比 Mybatis 官方的 Generator 更加强大！）\n- **支持自定义全局通用操作**：支持全局通用方法注入( Write once, use anywhere )\n- **内置分页插件**：基于Mybatis物理分页，开发者无需关心具体操作，配置好插件之后，写分页等同于写基本List查询\n- **内置性能分析插件**：可输出Sql语句以及其执行时间，建议开发测试时启用该功能，能有效解决慢查询\n- **内置全局拦截插件**：提供全表 delete 、 update 操作智能分析阻断，预防误操作\n\n## 相关链接 | Links\n\n- [文档](https://baomidou.com)\n- [代码生成](https://github.com/baomidou/generator)\n- [功能示例](https://gitee.com/baomidou/mybatis-plus-samples)\n- [展示](https://github.com/baomidou/awesome-mybatis-plus)\n- [企业版 Mybatis-Mate 高级特性](https://gitee.com/baomidou/mybatis-mate-examples)\n\n# 原理 | Principle\n\n[Mybatis-Plus 实践及架构原理](https://gitee.com/baomidou/mybatis-plus/attach_files)\n\n# 应用实例 | Demo\n\n[Spring-MVC](https://gitee.com/baomidou/mybatisplus-spring-mvc)\n\n[Spring-Boot](https://gitee.com/baomidou/mybatisplus-spring-boot)\n\n[SSM-实战 Demo](https://gitee.com/juapk/SpringWind)\n\n# 其他开源项目 | Other Project\n\n- [基于Cookie的SSO中间件 Kisso](https://gitee.com/baomidou/kisso)\n- [Java快速开发框架 SpringWind](https://gitee.com/juapk/SpringWind)\n- [基于Hibernate扩展 Hibernate-Plus](https://gitee.com/baomidou/hibernate-plus)\n- [基于 pac4j-jwt 的快速集成的 web 安全组件 shaun](https://gitee.com/baomidou/shaun)\n\n# 王者荣耀\n\n![MPTrophy](https://foruda.gitee.com/images/1703034397683946868/c9bf2ba5_12260.jpeg \"mybatis-plus.jpg\")\n\n# 期望 | Futures\n\n\u003e 欢迎提出更好的意见，帮助完善 Mybatis-Plus\n\n# 版权 | License\n\n[Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0)\n\n![捐赠 mybatis-plus](https://gitee.com/uploads/images/2015/1222/211207_0acab44e_12260.png \"支持一下mybatis-plus\")\n\n# 关注我 | About Me\n\n![程序员日记](https://images.gitee.com/uploads/images/2019/0619/181933_46d5b802_12260.png \"程序员日记\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaomidou%2Fmybatis-plus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaomidou%2Fmybatis-plus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaomidou%2Fmybatis-plus/lists"}