JPA 쿼리 콘솔에 나오게 하기

yesrin·2023년 8월 11일

JPA

목록 보기
3/7

쿼리 로그 Show 설정

spring.jpa.properties.hibernate.show_sql=true

SQL문 정렬하여 출력

spring.jpa.properties.hibernate.format_sql=true

바인딩되는 파라미터 값 출력

logging.level.org.hibernate.type.descriptor.sql=trace

주석 표시하기

spring.jpa.properties.hibernate.use_sql_comments=true

profile
안녕하세요! 틀린 정보는 댓글 달아 주세요.

0개의 댓글