Configures target data sources in Spring AbstractRoutingDataSource for database routing.
Tenant configuration is read from Java properties (multitenant.properties) and YAML file (multitenant.yml). Either property / YAML or both can be provided.
Multitenant application need to set CurrentTenant in TenantContextHolder to switch databases automatically.
- Data source auto configuration from the provided properties or YAML file(s).
- YAML property source factory implementation
- Read individual property file for each tenant and setup multitenant environment