# mybatis/spring-boot-starter

MyBatis integration with Spring Boot

Repository: https://github.com/mybatis/spring-boot-starter
Canonical: https://ross.abutalabs.com/products/spring-boot-starter
Language: Java
License: Apache-2.0
License Family: permissive
Topics: java, mybatis, spring-boot
Last push: 2026-08-26T15:12:02+00:00

## Health v2 (maintenance only)
Score: 89/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 69, longevity 100
- inputs: {"age_days": 3995, "days_push": 7, "days_rel": 48, "gap_med": 170.5, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4249, forks 1790 (observed 2026-08-28T04:08:40.406149+00:00)

## What it is
An official Spring Boot starter that autoconfigures MyBatis, the SQL mapping framework, for Spring Boot applications. It handles session factory setup, mapper scanning, and provides test autoconfiguration support.

## Use cases
- use MyBatis with Spring Boot
- autoconfigure MyBatis mappers in a Spring Boot app
- connect a Spring Boot app to a database with MyBatis
- write integration tests for MyBatis mappers
- build a Spring Boot REST API backed by MyBatis
- use MyBatis with GraalVM native image

## When to choose
- you prefer writing SQL with MyBatis mappers over JPA/Hibernate
- you want zero-config MyBatis setup in Spring Boot
- you need MyBatis test support in Spring Boot tests

## When to avoid
- you want a full ORM with automatic schema generation and entity relationships
- you don't use Spring Boot
- you prefer Spring Data JPA abstractions

## Facets
- artifact type: library
- maturity: stable
- function: orm, database, database-driver, testing
- domain: databases, backend, web-development, developer-tools
- platform: jvm
- tags: mybatis, spring-boot-starter, sql-mapper, autoconfiguration, spring-boot

## Member repositories
- mybatis/spring-boot-starter (main) score 89

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:40.406149+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:22:11.701723+00:00, confidence not recorded.
  - readme: https://github.com/mybatis/spring-boot-starter (fetched 2026-08-28T04:08:40.406149+00:00, sha f047133fc53a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
