Skip to content

Commit abc87d5

Browse files
committed
feat : mysql 드라이버 및 username, password 명시(yml)
1 parent e3f1d10 commit abc87d5

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

src/main/resources/application-prod.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@
44
# url: ${DATABASE_URL}
55
#
66
#
7-
# jpa:
8-
# hibernate:
9-
# ddl-auto: update
10-
# properties:
11-
# hibernate:
12-
# show_sql: false
7+
138
spring:
149
autoconfigure:
1510
exclude:
@@ -18,7 +13,16 @@ spring:
1813
host: ${REDIS_HOST}
1914
password: ${REDIS_PASSWORD}
2015
datasource:
21-
url: jdbc:mysql://mysql_1:3306/${DATABASE_URL}
16+
url: ${DATABASE_URL}
17+
username: ${DATABASE_USERNAME}
18+
password: ${DATABASE_PASSWORD}
19+
driver-class-name: com.mysql.cj.jdbc.Driver
20+
jpa:
21+
hibernate:
22+
ddl-auto: update
23+
properties:
24+
hibernate:
25+
show_sql: false
2226
springdoc:
2327
swagger-ui:
2428
enabled: false

0 commit comments

Comments
 (0)