본문 바로가기
SpringBoot/ETC

SQL 보기 옵션 정리

by BAYABA 2021. 10. 14.
  1. 개인 공부 목적으로 작성한 글입니다.
  2. 아래 출처를 참고하여 작성하였습니다.

spring:
  jpa:
    properties:
      hibernate:
        show_sql: true
        format_sql: true

목차

  1. SQL 보기
  2. SQL 예쁘게 보기

1. SQL 보기

  1. show_sql: true
spring:
  jpa:
    properties:
      hibernate:
        show_sql: true

2. SQL 예쁘게 보기

  1. format_sql: true
spring:
  jpa:
    properties:
      hibernate:
        format_sql: true

출처

  1. SpringBoot SQL 보기 옵션 총정리

'SpringBoot > ETC' 카테고리의 다른 글

SpringBoot에 MYSQL 연동  (0) 2021.10.14
@Builder 사용 시 주의 점  (0) 2021.10.08
생성자 주입 방식의 장점  (0) 2021.10.01