This repository has been archived by the owner on Aug 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 모든 profile에서 사용되는 전역설정 분리
- Loading branch information
Showing
3 changed files
with
11 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
# dev profile에 적용되는 properties | ||
# ddl-auto (validate) : 엔티티와 테이블이 정상적으로 매핑되었는지만 확인한다. (테스트단계와 스테이징 서버에서 사용) | ||
spring: | ||
profiles: dev | ||
|
||
jpa: | ||
hibernate: | ||
ddl-auto: validate | ||
properties: | ||
hibernate: | ||
format_sql: true | ||
ddl-auto: validate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,12 @@ | ||
# local profile에 적용되는 properties | ||
# ddl-auto (create) : 개발 초기 환경에서 사용. 애플리케이션 로딩 시점에 모든 테이블을 drop 후 새로 생성, 애플리케이션 서버 종료 후에도 DB 보존 (개발 초기단계에 사용) | ||
# format_sql : query의 출력 내용을 서식에 맞게 가독성을 향상시켜 출력 | ||
spring: | ||
profiles: local | ||
datasource: | ||
url: jdbc:h2:tcp://localhost/~/shoeactions | ||
username: sa | ||
password: | ||
driver-class-name: org.h2.Driver | ||
|
||
jpa: | ||
hibernate: | ||
ddl-auto: create | ||
properties: | ||
hibernate: | ||
format_sql: true | ||
ddl-auto: create |
10 changes: 7 additions & 3 deletions
10
src/main/resources/application-default.yml → src/main/resources/application.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
# 애플리케이션 실행시 local profile을 사용한다. (미적용시 default) | ||
# profile을 타지않는 전역 설정 | ||
# org.hibernate.SQL : 로거를 이용한 쿼리문 출력 | ||
# format_sql : query의 출력 내용을 서식에 맞게 가독성을 향상시켜 출력 | ||
# org.hibernate.type.descriptor.sql : ?로 표시된 쿼리 파라미터 값을 로그로 출력 | ||
spring: | ||
profiles: | ||
active: local | ||
jpa: | ||
properties: | ||
hibernate: | ||
format_sql: true | ||
|
||
logging.level: | ||
org.hibernate.SQL: debug | ||
org.hibernate.type: trace |