Skip to content

Commit

Permalink
feat: datasource config 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
sunghyuki committed Jun 26, 2024
1 parent 00509d1 commit 7ba8596
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,16 @@

spring:
datasource: # TODO MySQL로 변경
driver-class-name: org.h2.Driver
username: sa
password:
url: jdbc:h2:mem:test
h2:
console:
enabled: true
path: /h2-console
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
username: climingo
password: climingoclimingo!
url: jdbc:mysql://15.165.3.216:3306/climingo
jpa:
hibernate:
ddl-auto: create # TODO 운영 환경시 변경 필요
properties:
hibernate:
show_sql: true
format_sql: true
use_sql_comments: true
defer-datasource-initialization: true # data.sql 실행 시점을 변경(JPA 테이블 생성 후로 연기)
sql: # TODO 운영 환경시 init 쿼리 제외 필요
init:
mode: always

oauth2:
kakao:
Expand Down

0 comments on commit 7ba8596

Please sign in to comment.