File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/main/java/br/com/multidatasources/config/routing Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ Esta arquitetura consiste em diminuir a concorrência entre transações da API
1616</br >
1717</br >
1818
19- [ ![ node] ( https://img.shields.io/badge/AdoptOpenJDK -21-red.svg )] ( https://adoptopenjdk.net/ )
19+ [ ![ node] ( https://img.shields.io/badge/Azul_Zulu_OpenJDK -21-red.svg )] ( https://www.azul.com/downloads/?package=jdk#zulu )
2020[ ![ node] ( https://img.shields.io/badge/Spring_Boot-3.1.4-green.svg )] ( https://spring.io/ )
2121[ ![ node] ( https://img.shields.io/badge/MySQL-8.0.28-blue.svg )] ( https://www.mysql.com/ )
2222
Original file line number Diff line number Diff line change @@ -18,13 +18,13 @@ public class DataSourceRoutingConfiguration {
1818 @ Primary
1919 public TransactionRoutingDataSource routingDataSource (
2020 @ MasterDataSource final DataSource masterDataSource ,
21- @ ReplicaDataSource final DataSource slaveDataSource
21+ @ ReplicaDataSource final DataSource replicaDataSource
2222 ) {
2323 final var routingDataSource = new TransactionRoutingDataSource ();
2424
2525 final Map <Object , Object > dataSourceMap = new HashMap <>();
2626 dataSourceMap .put (DataSourceType .READ_WRITE , masterDataSource );
27- dataSourceMap .put (DataSourceType .READ_ONLY , slaveDataSource );
27+ dataSourceMap .put (DataSourceType .READ_ONLY , replicaDataSource );
2828
2929 routingDataSource .setTargetDataSources (dataSourceMap );
3030 routingDataSource .setDefaultTargetDataSource (masterDataSource );
You can’t perform that action at this time.
0 commit comments