Skip to content

Commit b794507

Browse files
committed
Feat : 샘플 데이터 초기화 설정
1 parent d4bd7b9 commit b794507

File tree

2 files changed

+334
-1
lines changed

2 files changed

+334
-1
lines changed

src/main/resources/application-dev.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,17 @@ spring:
1313
database: mysql
1414
database-platform: org.hibernate.dialect.MySQL8Dialect
1515
hibernate:
16-
ddl-auto: update
16+
ddl-auto: create
1717
show-sql: true
1818
properties:
1919
hibernate:
2020
format_sql: false
2121
use_sql_comments: true
22+
defer-datasource-initialization: true # 데이터베이스 초기화 지연 설정
23+
sql:
24+
init:
25+
mode: always # 개발 환경에서는 always로 사용하고, 배포 운영 환경에서는 never로 사용한다.
26+
# sql 초기화(실행) 관련 설정
2227
data:
2328
redis:
2429
host: localhost

0 commit comments

Comments
 (0)