Skip to content

Commit

Permalink
[#143] fix: 데이터베이스 레플리케이션 prod 환경에서만 적용 (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdomo authored Nov 12, 2023
1 parent 9ea8fa8 commit 1be57f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import java.util.List;
import org.springframework.context.annotation.Profile;

@Profile({"prod", "dev"})
@Profile("prod")
public class ReadOnlyDataSourceCycle<T> {
private List<T> readOnlyDataSourceLookupKeys;
private int index = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

@Configuration
@RequiredArgsConstructor
@Profile({"prod", "dev"})
@Profile("prod")
public class ReplicationDataSourceConfiguration {
private final ReplicationDataSourceProperties replicationDataSourceProperties;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 1be57f7

Please sign in to comment.