#application.yml 파일 중
jpa:
hibernate:
ddl-auto: create
properties:
hibernate:
show_sql: true
format_sql: true
logging.level:
org.hibernate.SQL: debug
properties 중 show_sql: true와 org.hibernate.SQL: debug의 차이점은?
| show_sql: true | org.hibernate.SQL: debug |
| system.out으로 콘솔에 하이버네이트 실행 sql을 남김 | logger를 통해 하이버네이트 실행 SQL을 남김 |
전자보다는 후자를 사용하므로 show_sql: true는 주석처리하는 경우가 많다.
'짤막 지식' 카테고리의 다른 글
| [짤막 지식] 쿼리 파라미터 로그 남기기 (0) | 2024.01.27 |
|---|---|
| [짤막 지식] syso 그 너머의 log찍기(logger 세팅 방법) (1) | 2023.12.25 |
| [짤막 지식] h2 Database 연결 안될 때... (0) | 2023.12.10 |
| [짤막 지식] 인텔리제이에서 default branch 변경하는 법 (0) | 2023.12.09 |
| [짤막 지식] github 비밀스럽게 잔디 심는 법 (0) | 2023.12.09 |