Skip to content

Commit 664702d

Browse files
committed
ci/cd: 수정
1 parent b0810a0 commit 664702d

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

backend/src/main/java/com/ai/lawyer/global/config/MetaDBConfig.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@
55
import org.springframework.boot.jdbc.DataSourceBuilder;
66
import org.springframework.context.annotation.Bean;
77
import org.springframework.context.annotation.Configuration;
8+
import org.springframework.context.annotation.Profile;
89

910
import javax.sql.DataSource;
1011

1112
@Configuration
13+
@Profile("!test-ci")
1214
public class MetaDBConfig {
1315

1416
@Bean
@@ -18,4 +20,4 @@ public DataSource metaDBSource() {
1820
return DataSourceBuilder.create().build();
1921
}
2022

21-
}
23+
}

backend/src/main/resources/application-dev.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,32 @@ spring:
44
username: ${DEV_DATASOURCE_USERNAME}
55
password: ${DEV_DATASOURCE_PASSWORD}
66
driver-class-name: ${DEV_DATASOURCE_DRIVER}
7+
8+
datasource-meta:
9+
jdbc-url: jdbc:mysql://localhost:3306/meta_db?useSSL=false&useUnicode=true&serverTimezone=Asia/Seoul&allowPublicKeyRetrieval=true&createDatabaseIfNotExist=true
10+
username: root
11+
password: balaw
12+
driver-class-name: com.mysql.cj.jdbc.Driver
13+
714
jpa:
815
hibernate:
916
ddl-auto: ${DEV_JPA_HIBERNATE_DDL_AUTO}
1017
properties:
1118
hibernate:
1219
dialect: org.hibernate.dialect.MySQLDialect
1320
data:
21+
1422
redis:
1523
host: ${DEV_REDIS_HOST}
1624
port: ${DEV_REDIS_PORT}
1725
password: ${DEV_REDIS_PASSWORD}
1826
embedded: false
19-
2027
batch:
2128
job:
2229
enabled: false # 최소 한번 시작
2330
jdbc:
2431
initialize-schema: always
2532

26-
datasource-meta:
27-
driver-class-name: com.mysql.cj.jdbc.Driver
28-
jdbc-url: jdbc:mysql://localhost:3306/meta_db?useSSL=false&useUnicode=true&serverTimezone=Asia/Seoul&allowPublicKeyRetrieval=true&createDatabaseIfNotExist=true
29-
username: root
30-
password: balaw
3133
security:
3234
oauth2:
3335
client:

0 commit comments

Comments
 (0)