Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set(main) : 폴더 구조 및 yml 설정 #8

Merged
merged 3 commits into from
Dec 27, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
1 change: 0 additions & 1 deletion src/main/resources/application.properties

This file was deleted.

28 changes: 28 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url : ${URL}
username: ${USER}
password: ${PASSWORD}

logging:
level:
org:
hibernate:
SQL: debug

jpa:
database: mysql
database-platform: org.hibernate.dialect.MySQL8Dialect
generate-ddl: true
hibernate:
ddl-auto: update
properties:
hibernate:
format_sql: true
show_sql: true

decorator:
datasource:
p6spy:
enable-logging: true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

어느 범위까지 SQL 로깅을 하고자 고민했나요?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

디버깅 범위까지 로깅 하고자 했습니다. 디버깅까지만 해도 충분히 이해할 수 있고 트레이스 범위까지 하면 로그가 복잡해질 것 같습니다.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

각각

show_sql: true - 1
decorator:
datasource:
p6spy:
enable-logging: true - 2

1과 2를 다 해주는 이유를 모르겠어요. 목적이 무엇인가요?

Copy link
Contributor Author

@Woongbin06 Woongbin06 Dec 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

전체적인 디비 로그를 남길려고 했는데 1은 삭제 하겠습니다.