File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed
java/com/ai/lawyer/global/config Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 55import org .springframework .boot .jdbc .DataSourceBuilder ;
66import org .springframework .context .annotation .Bean ;
77import org .springframework .context .annotation .Configuration ;
8+ import org .springframework .context .annotation .Profile ;
89
910import javax .sql .DataSource ;
1011
1112@ Configuration
13+ @ Profile ("!test-ci" )
1214public class MetaDBConfig {
1315
1416 @ Bean
@@ -18,4 +20,4 @@ public DataSource metaDBSource() {
1820 return DataSourceBuilder .create ().build ();
1921 }
2022
21- }
23+ }
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments