Tagged articles
4 articles
Page 1 of 1
Java Tech Workshop
Java Tech Workshop
Apr 2, 2026 · Backend Development

SpringBoot Multiple Data Source Configuration for Basic Read‑Write Separation

This guide explains how to configure multiple data sources in SpringBoot to achieve basic read‑write separation, covering applicable scenarios, step‑by‑step setup of master and slave DataSources, SqlSessionFactory and SqlSessionTemplate beans, package‑based routing, transaction considerations, common pitfalls, and best‑practice recommendations.

JavaMultiple DataSourceMyBatis
0 likes · 9 min read
SpringBoot Multiple Data Source Configuration for Basic Read‑Write Separation
Selected Java Interview Questions
Selected Java Interview Questions
Dec 3, 2025 · Backend Development

Coexisting Multiple DataSources in Spring Boot: No Switching Needed

This guide explains how to configure Spring Boot applications to use multiple coexisting DataSource beans—such as MySQL and TDengine—without runtime switching, covering bean definitions, MyBatis mapper scanning, transaction manager setup, custom @Transactional annotations, and common pitfalls, enabling clean separation of business, log, and time‑series data.

Backend DevelopmentMultiple DataSourceMyBatis
0 likes · 12 min read
Coexisting Multiple DataSources in Spring Boot: No Switching Needed
The Dominant Programmer
The Dominant Programmer
Feb 20, 2024 · Backend Development

How to Manually Switch Multiple Data Sources (MySQL, SQL Server) in Spring Boot with Dynamic‑Datasource

This guide shows how to configure Spring Boot, MyBatis‑Plus and the dynamic‑datasource starter to connect to MySQL, SQL Server and PostgreSQL, add and remove data sources at runtime, verify their availability, and perform manual switching using a utility class and functional interfaces.

JavaMultiple DataSourceSpringBoot
0 likes · 14 min read
How to Manually Switch Multiple Data Sources (MySQL, SQL Server) in Spring Boot with Dynamic‑Datasource