Skip to content

Commit

Permalink
refactor: replication Profile prod 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
donghae-kim committed Sep 26, 2023
1 parent 5dc2478 commit 347e3e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import java.util.Map;

@Configuration
@Profile({"!test"})
@Profile({"prod"})
public class DataSourceConfig {

public static final String MASTER_DATA_SOURCE = "master";
Expand Down
14 changes: 4 additions & 10 deletions server/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 347e3e3

Please sign in to comment.