From 484ef4750d91860d3526f750f2114d17a728e42d Mon Sep 17 00:00:00 2001 From: DooHyoJeong Date: Wed, 15 Oct 2025 10:24:38 +0900 Subject: [PATCH 1/2] =?UTF-8?q?chore[initdate]:=20ddl=20=ED=83=80=EC=9E=85?= =?UTF-8?q?=20=EC=9E=AC=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/main/resources/application.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/src/main/resources/application.yml b/backend/src/main/resources/application.yml index 1e2e258..8badc76 100644 --- a/backend/src/main/resources/application.yml +++ b/backend/src/main/resources/application.yml @@ -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: From d1a9d4d4400ebd73c279e5df424d2106d56f4465 Mon Sep 17 00:00:00 2001 From: DooHyoJeong Date: Wed, 15 Oct 2025 11:18:27 +0900 Subject: [PATCH 2/2] =?UTF-8?q?chore[infra]:=20sql=20=EB=A1=9C=EA=B7=B8=20?= =?UTF-8?q?=EC=A4=84=EC=9D=B4=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/main/resources/application-prod.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/backend/src/main/resources/application-prod.yml b/backend/src/main/resources/application-prod.yml index 9fa63b6..498a506 100644 --- a/backend/src/main/resources/application-prod.yml +++ b/backend/src/main/resources/application-prod.yml @@ -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) @@ -88,4 +89,12 @@ sentry: dsn: ${PROD_SENTRY_DSN} environment: "prod" release: "my-app@0.1.0-prod" - send-default-pii: true \ No newline at end of file + 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 # 커넥션 풀 상태만 간결하게 \ No newline at end of file