# spring-data-mybatis **Repository Path**: easybest/spring-data-mybatis ## Basic Information - **Project Name**: spring-data-mybatis - **Description**: Spring Data 项目的主要目标是使构建使用数据访问技术的 Spring 应用程序变得更加容易。此模块处理增强基于 MyBatis 的数据访问层的支持。 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 94 - **Forks**: 32 - **Created**: 2016-12-21 - **Last Updated**: 2025-09-12 ## Categories & Tags **Categories**: database-dev **Tags**: None ## README

----

The primary goal of the Spring Data project is to make it easier to build Spring-powered applications that use data access technologies. This module deals with enhanced support for MyBatis based data access layers. **This module _does not_ make any modifications to MyBatis**. Non-invasive enhancement of MyBatis functionality by using the pre-compiled MyBatis Mapper Statement mode take developers more flexibility. At the same time, you can use the Spring Data pattern to reduce the amount of code and improve development efficiency. > To put it bluntly, it is to help you automatically generate the Mapper files in advance, all the SQLs are ready, and > then, the essence is still MyBatis. Developers who use MyBatis no longer need to envy Spring Data JPA and the like ^_^ ## Useful Links * [Documentation](https://sdm.easybest.io) * [Example Project](https://github.com/easybest/spring-data-mybatis-samples) * [Simplified Chinese](README_zh.md) ## Features ## * Do not invade MyBatis, completely native use * Use standard Java Persistence API (JPA) annotations * Supports full CRUD operations on Entities, as well as more complex queries * Support to generate corresponding query by method name in interface (Spring Data) * Support associated queries, support automatic identification of associated query conditions * Entity base class that provides basic properties * Support transparent auditing (such as creation time, last modification) * Self-sustained custom writing of MyBatis-based queries, convenient and flexible * Easy integration with Spring and Spring Boot * Support MySQL, Oracle, SQL Server, H2, PostgreSQL, DB2, Derby, HSQL, Phoenix, MariaDB, Sqlite, Informix, HerdDB, Impala, Clickhouse, CUBRID, EnterpriseDB, Firebird, HANA, Ingres, PolarDB, DM, OSCAR, HighGO, XUGU, Kingbase etc. ## Quick Start ## ### Installation #### Maven ```xml io.easybest spring-data-mybatis 2.1.0 ``` In Spring Boot, use the following starter directly: ```xml io.easybest spring-data-mybatis-starter 2.1.0 ``` #### Gradle ```groovy implementation('io.easybest:spring-data-mybatis:2.1.0') ``` In Spring Boot, use the following starter directly: ```groovy implementation('io.easybest:spring-data-mybatis-starter:2.1.0') ``` ## Contributing Here are some ways for you to get involved in the community: * GitHub is for social coding: if you want to write code, we encourage contributions through pull requests from [forks of this repository](https://help.github.com/forking/). ## Getting Help ## Here is a [reference documentation](https://sdm.easybest.io) to help you learn Spring Data Mybatis quickly. If you have any questions or suggestions, you can record an [issue](https://github.com/easybest/spring-data-mybatis/issues). In addition, you can also add a QQ group to conduct related discussions and seek some help. QQ Group 1: 497907039 ## Donation [![paypal](https://www.paypal.com/en_US/i/btn/x-click-butcc-donate.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W7PLNCBK5K8JS)