Skip to content

Commit 29a4ac1

Browse files
committed
ci/cd: 수정
1 parent 7fa80f3 commit 29a4ac1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
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,13 +5,15 @@
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

14-
@Value("${spring.datasource-meta.jdbc-url}")
16+
@Value("${spring.datasource-meta.url}")
1517
private String url;
1618

1719
@Value("${spring.datasource-meta.username}")

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ spring:
66
driver-class-name: ${DEV_DATASOURCE_DRIVER}
77

88
datasource-meta:
9-
jdbc-url: jdbc:mysql://localhost:3306/meta_db?useSSL=false&useUnicode=true&serverTimezone=Asia/Seoul&allowPublicKeyRetrieval=true&createDatabaseIfNotExist=true
9+
url: jdbc:mysql://localhost:3306/meta_db?useSSL=false&useUnicode=true&serverTimezone=Asia/Seoul&allowPublicKeyRetrieval=true&createDatabaseIfNotExist=true
1010
username: root
1111
password: balaw
1212
driver-class-name: com.mysql.cj.jdbc.Driver

0 commit comments

Comments
 (0)