Skip to content

Commit 1b6fa7e

Browse files
committed
chore: datasource 연결 정보 분리
- 환경 변수로 값 주입되도록 구현
1 parent e3d4ba5 commit 1b6fa7e

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
spring:
2+
datasource:
3+
url: ${DB_URL}
4+
driver-class-name: oracle.jdbc.OracleDriver
5+
username: ${DB_USERNAME}
6+
password: ${DB_PASSWORD}
7+
jpa:
8+
hibernate:
9+
ddl-auto: ${DDL_AUTO}
10+
show-sql: ${SHOW_SQL}
11+
properties:
12+
hibernate:
13+
dialect: org.hibernate.dialect.OracleDialect

src/main/resources/application.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,3 @@ server:
33
spring:
44
application:
55
name: dasom-api
6-
datasource:
7-
url: ${DB_URL}
8-
driver-class-name: oracle.jdbc.OracleDriver
9-
username: ${DB_USERNAME}
10-
password: ${DB_PASSWORD}
11-
jpa:
12-
hibernate:
13-
ddl-auto: update
14-
show-sql: true

0 commit comments

Comments
 (0)