CodesJava

Easy learning with example program codes

how to log sql statements in spring boot?


We can log sql statements in spring boot by using following properties in application.properties file.

//It will shows sql statement in the logs
logging.level.org.hibernate.SQL=debug
 
//It will shows sql values in the logs
logging.level.org.hibernate.type.descriptor.sql=trace


Copyright © 2018 CodesJava DMCA.com Protection Status SiteMap