From c9ce73b69f12a89e6954291f062ec3534f669c70 Mon Sep 17 00:00:00 2001 From: kdomo Date: Sun, 12 Nov 2023 15:39:34 +0900 Subject: [PATCH] =?UTF-8?q?[#143]=20fix:=20=EB=8D=B0=EC=9D=B4=ED=84=B0?= =?UTF-8?q?=EB=B2=A0=EC=9D=B4=EC=8A=A4=20=EB=A0=88=ED=94=8C=EB=A6=AC?= =?UTF-8?q?=EC=BC=80=EC=9D=B4=EC=85=98=20prod=20=ED=99=98=EA=B2=BD?= =?UTF-8?q?=EC=97=90=EC=84=9C=EB=A7=8C=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/todaysfail/config/mysql/ReadOnlyDataSourceCycle.java | 2 +- .../config/mysql/ReplicationDataSourceConfiguration.java | 2 +- .../todaysfail/config/mysql/ReplicationRoutingDataSource.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TodaysFail-Infrastructure/src/main/java/com/todaysfail/config/mysql/ReadOnlyDataSourceCycle.java b/TodaysFail-Infrastructure/src/main/java/com/todaysfail/config/mysql/ReadOnlyDataSourceCycle.java index aeaa826..c69d92d 100644 --- a/TodaysFail-Infrastructure/src/main/java/com/todaysfail/config/mysql/ReadOnlyDataSourceCycle.java +++ b/TodaysFail-Infrastructure/src/main/java/com/todaysfail/config/mysql/ReadOnlyDataSourceCycle.java @@ -3,7 +3,7 @@ import java.util.List; import org.springframework.context.annotation.Profile; -@Profile({"prod", "dev"}) +@Profile("prod") public class ReadOnlyDataSourceCycle { private List readOnlyDataSourceLookupKeys; private int index = 0; diff --git a/TodaysFail-Infrastructure/src/main/java/com/todaysfail/config/mysql/ReplicationDataSourceConfiguration.java b/TodaysFail-Infrastructure/src/main/java/com/todaysfail/config/mysql/ReplicationDataSourceConfiguration.java index b932086..28d573d 100644 --- a/TodaysFail-Infrastructure/src/main/java/com/todaysfail/config/mysql/ReplicationDataSourceConfiguration.java +++ b/TodaysFail-Infrastructure/src/main/java/com/todaysfail/config/mysql/ReplicationDataSourceConfiguration.java @@ -14,7 +14,7 @@ @Configuration @RequiredArgsConstructor -@Profile({"prod", "dev"}) +@Profile("prod") public class ReplicationDataSourceConfiguration { private final ReplicationDataSourceProperties replicationDataSourceProperties; diff --git a/TodaysFail-Infrastructure/src/main/java/com/todaysfail/config/mysql/ReplicationRoutingDataSource.java b/TodaysFail-Infrastructure/src/main/java/com/todaysfail/config/mysql/ReplicationRoutingDataSource.java index a97716b..ab2f639 100644 --- a/TodaysFail-Infrastructure/src/main/java/com/todaysfail/config/mysql/ReplicationRoutingDataSource.java +++ b/TodaysFail-Infrastructure/src/main/java/com/todaysfail/config/mysql/ReplicationRoutingDataSource.java @@ -7,7 +7,7 @@ import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource; import org.springframework.transaction.support.TransactionSynchronizationManager; -@Profile({"prod", "dev"}) +@Profile("prod") @RequiredArgsConstructor public class ReplicationRoutingDataSource extends AbstractRoutingDataSource { private static final String MASTER = "master";