Skip to content

Commit

Permalink
[ADD] 마스터 & 슬레이브 로그 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
Kim-Dong-Jun99 committed Jun 29, 2023
1 parent 67ad860 commit 4b3b3a3
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,13 @@ public DataSource routingDataProperty(String url){
public DataSource routingDataSource(){
ReplicationRoutingDataSource replicationRoutingDataSource = new ReplicationRoutingDataSource();
DataSource master = routingDataProperty(databaseProperty.getUrl());
log.info("master "+databaseProperty.getUrl());


Map<Object,Object> dataSourceMap = new LinkedHashMap<>();
dataSourceMap.put("master",master);

databaseProperty.getSlaveList().forEach(slave -> {
dataSourceMap.put(slave.getName() , routingDataProperty(slave.getUrl()));
log.info(slave.getName() + " " + slave.getUrl());
});

replicationRoutingDataSource.setTargetDataSources(dataSourceMap);
Expand Down

0 comments on commit 4b3b3a3

Please sign in to comment.