diff --git a/server/src/main/java/com/project/yozmcafe/config/datasource/DataSourceConfig.java b/server/src/main/java/com/project/yozmcafe/config/datasource/DataSourceConfig.java index a840dab0..5795c558 100644 --- a/server/src/main/java/com/project/yozmcafe/config/datasource/DataSourceConfig.java +++ b/server/src/main/java/com/project/yozmcafe/config/datasource/DataSourceConfig.java @@ -13,7 +13,7 @@ import java.util.Map; @Configuration -@Profile({"!test"}) +@Profile({"prod"}) public class DataSourceConfig { public static final String MASTER_DATA_SOURCE = "master"; diff --git a/server/src/main/resources/application.yaml b/server/src/main/resources/application.yaml index 7f52a781..a726a4d9 100644 --- a/server/src/main/resources/application.yaml +++ b/server/src/main/resources/application.yaml @@ -1,15 +1,9 @@ spring: datasource: - master: - jdbc-url: jdbc:mysql://localhost:20000/yozm-cafe?useSSL=false&allowPublicKeyRetrieval=true&characterEncoding=UTF-8&serverTimezone=UTC - username: root - password: root - driver-class-name: com.mysql.cj.jdbc.Driver - slave: - jdbc-url: jdbc:mysql://localhost:20001/yozm-cafe?useSSL=false&allowPublicKeyRetrieval=true&characterEncoding=UTF-8&serverTimezone=UTC - username: root - password: root - driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://localhost:20000/yozm-cafe?useSSL=false&allowPublicKeyRetrieval=true&characterEncoding=UTF-8&serverTimezone=UTC + username: root + password: root + driver-class-name: com.mysql.cj.jdbc.Driver auth: key: testtesttesttesttesttesttesttesttesttesttesttesttesttesttest