Spring Boot에서 query DSL을 사용하건 spring boot JPA를 사용하건, 쿼리를 튜닝할 때 SQL을 봐야할 때가 있다. 그럴 때 사용할 수 있는 몇 가지 옵션을 조사해 보았다. 환경 : Spring boot 2.* + hibernate 5.3.10 이상 sql 보기 Hibernate이 DB에 날리는 모든 쿼리(DDL, DML)를 보여준다 application.yml을 사용한다면, spring: jpa: properties: hibernate: show_sql: true application.properties를 사용한다면, spring.jpa.properties.hibernate.show_sql=true 추가된 로그 Hibernate: select user0_.id as id1_0_..