본문 바로가기

Programming/Spring JPA

스프링부트 JPA 쿼리 파라미터 콘솔에서 확인방법

반응형
SMALL

application.properties파일에 다음 추가 

 


spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true
logging.level.org.hibernate.type.description.sql=trace

 

https://wakestand.tistory.com/664

 

스프링부트 JPA 쿼리 파라미터 콘솔에서 확인방법

스프링부트(Springboot) 에서 JPA를 이용해 Insert 문을 한번 동작시켜 봤는데 콘솔창을 확인해보니 입력한 파라미터가 ?가 뜨니 머릿속에 갈고리밖에 떠오르질 않는데 이거 날더러 추리하라는 얘긴

wakestand.tistory.com

 

반응형
LIST