Dynamic data source in SpringBoot Master-slave separation Read-write separation Distributed transactions
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>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.
Latest document https://doc.xiuceyun.cn
Old cloud-reading documents, updated without maintenance at https://www.kancloud.cn/trade5546/dynamic-datasource/2264611
We welcome the contribution of the community, see [CONTRIBUTTING.md] (./ CONTRIBUTING.md).
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.
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**
` 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
No open issues yet, or sync has not completed.