Skip to content

Commit

Permalink
#3 fix: application.yml datasource 경로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
yo0oni committed Jan 11, 2024
1 parent 1ba07c0 commit 5180afe
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/src/main/resources/application-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@ server:
port: 5000

spring:
profiles:
active: local
session:
store-type: jdbc
jpa:
database: MYSQL
show-sql: true
database-platform: org.hibernate.dialect.MySQL8Dialect
hibernate:
ddl-auto: update
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/trip
username: ${DB_USERNAME}
password: ${DB_PASSWORD}
15 changes: 15 additions & 0 deletions backend/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
server:
port: 5000

spring:
jpa:
database: MYSQL
show-sql: true
database-platform: org.hibernate.dialect.MySQL8Dialect
hibernate:
ddl-auto: update
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/trip
username: ${DB_USERNAME}
password: ${DB_PASSWORD}

0 comments on commit 5180afe

Please sign in to comment.