Configuring Multiple Datasources in Spring Boot 3 with MyBatis-Plus
Database Initialization
Set up three distinct databases: primary_db, replica_a, and replica_b. The primary database will hold the initial records, while the replicas will only contain the schema.
CREATE TABLE `inventory_item` (
`id` bigint NOT NULL AUTO_INCREMENT,
`sku` varchar(50) NOT NULL,
`name` varchar(200) NOT NULL,
`type` varchar( ...
Posted on Wed, 19 Aug 2026 16:21:19 +0000 by Mieke23