계속 까먹어서 짜증나서 그냥 기록합니다.
아래 설정은 application.yaml 에 작성한 내용을 그대로 복붙한 겁니다.
spring:
application:
name: spring_jpa_practice
datasource:
username: postgres
password: postgres
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://localhost:5432/postgres
jpa:
#hibernate:
# ddl-auto: none
#open-in-view: false
properties:
show_sql: true
hibernate:
format_sql: true
# default_batch_fetch_size: 1000
use_sql_comments: true
logging.level.org.hibernate.SQL: DEBUG
logging.level.org.hibernate.orm.jdbc.bind: TRACE
# 혹시라도 jdbcTemplate 로그 보고 싶으면 아래처럼...
# logging.level.org.springframework.jdbc.core.JdbcTemplate: DEBUG
# logging.level.org.springframework.jdbc.core.StatementCreatorUtils: TRACE