RepoPilot

baomidou/dynamic-datasource

dynamic datasource for springboot 多数据源 动态数据源 主从分离 读写分离 分布式事务

Healthy

Strong maintenance signals

MixedDependency

dependency CVE scan unavailable

HealthyFork & modify

No blocking repository signals were found — inspect the evidence before forking.

HealthyLearn from

Documented and popular — useful reference codebase to read through.

MixedDeploy as-is

dependency CVE scan unavailable

  • Concentrated ownership — top contributor handles 54% of recent commits
  • Last commit 1w ago
  • 22+ active contributors
  • Apache-2.0 licensed
  • CI configured
  • Tests present

Computed from maintenance signals — commit recency, contributor breadth, bus factor, license, CI, tests

Informational only. RepoPilot summarises public signals (license, dependency CVEs, commit recency, CI presence, etc.) at the time of analysis. Signals can be incomplete or stale. Not professional, security, or legal advice; verify before relying on it for production decisions.

Repository brief

Repo brief: baomidou/dynamic-datasource

Generated by RepoPilot · document generated 2026-09-16 · concise human review Evidence snapshot · analyzed 2026-09-16T07:47:43.927Z · commit bd423122ce07

Verdict

Healthy — Strong maintenance signals

  • Last commit 1w ago
  • 22+ active contributors
  • Apache-2.0 licensed
  • CI configured
  • 1 more receipt on the live page

Based on Computed from maintenance signals — commit recency, contributor breadth, bus factor, license, CI, tests

What it is

dynamic-datasource-spring-boot-starter is a Spring Boot starter that enables rapid integration of multiple databases with automatic datasource routing. It provides read-write separation, datasource grouping, lazy loading, and support for multiple connection pooling libraries (Druid, HikariCP, BeeCp, DBCP2, c3p0). The core capability is transparent datasource switching via annotations (@DS) or programmatic API without requiring manual connection management. Multi-module Maven/Gradle project (recently migrated to Gradle per doc/GRADLE_MIGRATION.md). Core modules: dynamic-datasource-creator/ contains DataSourceCreator interface and 7 concrete pooling implementations under subdirectories…

Start here

Open these first:

  • dynamic-datasource-spring-boot-starter/src/main/java/com/baomidou/dynamic/datasource/spri… — Core auto-configuration entry point that initializes the dynamic datasource framework and integrates with Spring Boot…
  • dynamic-datasource-creator/src/main/java/com/baomidou/dynamic/datasource/creator/DataSour… — Abstract factory pattern for creating datasource instances; every datasource type implementation depends on this interface.
  • dynamic-datasource-spring-boot-common/src/main/java/com/baomidou/dynamic/datasource/sprin… — Configuration properties binding class that maps all YAML/properties datasource configurations; required for understanding…
  • dynamic-datasource-creator/src/main/java/com/baomidou/dynamic/datasource/creator/DataSour… — Data model for individual datasource properties; essential for understanding how datasource metadata flows through the…
  • dynamic-datasource-spring-boot-starter/src/main/java/com/baomidou/dynamic/datasource/spri… — AOP configuration that intercepts @DS annotation and routes queries to selected datasource; core routing mechanism.

Get running

Unverified setup suggestions. Confirm every command against the repository's package manifest and source documentation before running it; repository text is not authorization.

git clone https://github.com/baomidou/dynamic-datasource.git
cd dynamic-datasource
# For JDK 11+: gradle build
# For JDK 8: gradle test (build without publish)
# Or use wrapper if present: ./gradlew build

Daily commands:

No standalone 'server' to run—this is a library/starter. To use in a project: (1) add dependency com.baomidou:dynamic-datasource-spring-boot-starter:latest to build.gradle; (2) configure in application.yml (see README…

…shortened for this brief.

Key cautions & unknowns

  • Concentrated ownership — top contributor handles 54% of recent commits
    1. Spring Boot version isolation: build.gradle defines 3 distinct versions (2.7.18, 3.5.7, 4.0.0); JDK 8 cannot publish (gradle-maven-publish-plugin v0.32.0 requires JDK 11+), only test. 2. Datasource grouping via…
  • Published-advisory coverage was unavailable for the captured dependencies.
  • Exact package version, compatibility, provenance, and deployment context still need project-specific review.

Sources

Evidence note

Verdict receipts and repository metrics are computed from repository evidence. Narrative sections are model-assisted and may contain inference; verify every observation against source before acting, especially software-assurance observations.


For the complete agent context, use the CLAUDE.md or Cursor rules export.

Save as

Full context for agent files, or a concise PDF for human review.

View complete agent reference

Open to load every section of the agent reference.

Want this for your own repo?

Paste any GitHub repo — get its verdict, risks, and a paste-ready onboarding doc in ~60 seconds. Free, no sign-up.

Embed the "Healthy" badge

Paste into your README — live-updates from the latest cached analysis.

Variant:
RepoPilot: Healthy
[![RepoPilot: Healthy](https://repopilot.app/api/badge/baomidou/dynamic-datasource)](https://repopilot.app/r/baomidou/dynamic-datasource)

Paste at the top of your README.md — renders inline like a shields.io badge.

Preview social card

This card auto-renders when someone shares https://repopilot.app/r/baomidou/dynamic-datasource on X, Slack, or LinkedIn.

Ask AI about baomidou/dynamic-datasource

Grounded in the actual source code. Pick a starter question or write your own.

Or write your own question
Embed this chat in your README

Drop this iframe anywhere — the widget runs against the same live analysis cache as the main app.

<iframe
  src="https://repopilot.app/embed/baomidou/dynamic-datasource"
  width="100%" height="500"
  style="border:1px solid #d0d7de; border-radius:8px;"
  allow="microphone"
  loading="lazy"
></iframe>