About this project

MyBatis-Plus is a Java persistence toolkit built on top of MyBatis and designed to simplify database-oriented development. The README describes it as fully compatible with MyBatis, with automatic startup configuration and out-of-the-box interfaces for common database operations. Its documented features include BaseMapper-based CRUD operations, a flexible QueryWrapper with lambda-style conditions, multiple primary-key generation strategies, automatic pagination, a customizable code generator, active-record support, pluggable custom interfaces, SQL injection defense, and built-in extensions. The project provides Maven and Gradle artifacts, including separate Spring Boot 2, Spring Boot 3, and Spring Boot 4 starters. Additional JSqlParser dependencies are noted for newer versions and different JDK levels. A typical setup involves defining a mapper interface that extends BaseMapper for an entity and then using methods such as selectList with a lambda condition. The README example queries users whose age is greater than or equal to 18, and MyBatis-Plus generates the corresponding SELECT query with a WHERE age clause. The repository links to official documentation, a code generator, samples, and a showcase collection. It also links to an enterprise Mybatis-Mate examples project. MyBatis-Plus is released under the Apache License 2.0.