Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
D

dynamic-datasource

> 后端框架
Open source

Dynamic data source in SpringBoot Master-slave separation Read-write separation Distributed transactions

5.2K stars0 likes0 views
WebsiteGitHub

About

Dynamic data source in SpringBoot Master-slave separation Read-write separation Distributed transactions

♪ Palign ♪

♪ Palign ♪ A fast-integrated multi-data source based on springboot

♪ Palign ♪ I'm sorry.

I'm sorry. I'm sorry. "https://www.jetbrains.com" I'm sorry. /a>

Profile

dynamic-datasource-spring-boot-starter is a quick-integrated multi-data source starter based on springboot.

Support Jdk 1.7+, SpringBoot 1.5 x 2.x.x 3.x.x 4.x.x.

Documentation

Latest document https://doc.xiuceyun.cn

Old cloud-reading documents, updated without maintenance at https://www.kancloud.cn/trade5546/dynamic-datasource/2264611

Contribution

We welcome the contribution of the community, see [CONTRIBUTTING.md] (./ CONTRIBUTING.md).

Features

  • Support ** data source group**, applicable to multiple scenarios Pure multiple library reading and writing separation of one main multiple from hybrid mode.
  • Support database sensitive configuration information ** Encryption (auto-defined)** ENC()
  • Support for the independent initialization of table structures for each database, schema and database database.
  • Support for data-free start-up and lazy load of data sources (to create connections when needed).
  • Support ** Custom note** to succeed DS (3.2.0+).
  • Provide and simplify rapid integration of Druid, Hikaricp, BeeCp, Debcp2.
  • Provision of integrated programmes for Mybatis-Plus, Quartz, Shading Jdbc, P6sy, Jundi and other components.
  • Provide ** Custom data source** programmes (e.g. fully loaded from database).
  • Provides after project start-up ** dynamically add removal data source** programme.
  • Provides ** pure reading and writing separation** in Mybatis environment.
  • Provide the use of spel dynamic parameters for data source resolution. Internal spel, session, header, in support of custom.
  • Support ** multilayer data source nesting switch**. (ServiceA > ServiceB > ServiceC).
  • Provide ** Seata-based distributed service programme**.
  • Provide ** Local Multiple Data Source Services programme. **

Promise

This framework does only ** to switch the core of data sources** and ** does not limit your specific operations**, to switch the data sources to any CRUD. 2. Profiles all underlined separated data sources *head * Name of group, the data source of the same group name will be placed under one group. Toggle data sources may be group names or specific data source names. The group name is changed using the load equilibrium algorithm. 4. The default data source name master can be modified by `spring.datasource.dynamic.primary ' . 5. Actively switch in the code block > A note on methodology > A comment above (near principle). DS supports the succession of DS in the abstract category and the succession of DS in the interface.

Use method

Version selection

Select the starter module corresponding to your Spring Boot and JDK versions:

| Spring Boot version | JDK version request | Start supporting version | Starter module | |: -- --: |: |: |: |: |: |: |: | : | | : | | : | | : | | ~1.5 x ~ 2.x.x | JDK 8+ 1.0 + `dynamic-datasource-spring-boot-starter ' | 3.x.x | JDK 17+ 4.0.0 + 4.x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x

** Annotations:**

  • Spring Boot 1.5.x ~ 2.x.x Use `dynamic-datasource-spring-boot-starter ' to support JDK 8 and above
  • Spring Boot 3.x.x Use `dynamic-datasource-spring-boot3-starter',** request JDK 17 and above**
  • Spring Boot 4.x.x Use `dynamic-datasource-spring-boot4-starter ',** request JDK 17 and above**
  1. Configure data sources.

` I don't know. `

Multiple majority from: ``Yaml ' Spring: Oh, my God. dynamic: Oh, my God. It's the first time I've ever seen it. It's not like it's gonna happen. Slave 1: Slave 2: Slave 3: ```` `

** Pure multiple:** ``Yaml ' Spring: Oh, my God. dynamic: Oh, my God. MySQL: Oracle: Sqlserver: ZZTERRM0Z: h2: ```` `

** Mixed configuration:** ``Yaml ' Spring: Oh, my God. dynamic: Oh, my God

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Javadatasourcedistributed-transactiondynamic-datasourcedynamicdatasource

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category后端框架
PricingOpen source

> Related tools

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架