Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
11 changes: 10 additions & 1 deletion backend/src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ spring:
connection-timeout: 30000
max-lifetime: 1800000 # MySQL wait_timeout(기본 28800)보다 짧게
jpa:
show-sql: false
open-in-view: false # 프로덕션 권장
hibernate:
ddl-auto: ${PROD_JPA_HIBERNATE_DDL_AUTO} # 운영 DB는 보통 validate (또는 none)
Expand Down Expand Up @@ -88,4 +89,12 @@ sentry:
dsn: ${PROD_SENTRY_DSN}
environment: "prod"
release: "[email protected]"
send-default-pii: true
send-default-pii: true

logging:
level:
org.hibernate.SQL: WARN # SQL 문 로그 줄이기
org.hibernate.orm.jdbc.bind: OFF # 바인딩 파라미터 로그 끔(Hibernate 6)
org.hibernate.type.descriptor.jdbc: OFF
org.springframework.jdbc.core: ERROR # JdbcTemplate 디버그 억제
com.zaxxer.hikari: INFO # 커넥션 풀 상태만 간결하게
8 changes: 4 additions & 4 deletions backend/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ spring:
jdbc:
initialize-schema: never

jpa:
show-sql: true
hibernate:
ddl-auto: ${SPRING_JPA_HIBERNATE_DDL_AUTO}
# jpa:
# show-sql: true
# hibernate:
# ddl-auto: ${SPRING_JPA_HIBERNATE_DDL_AUTO}

properties:
hibernate:
Expand Down