CodesJava

Easy learning with example program codes

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
Please follow and like us:

Spring Tutorial



Copyright © 2019 CodesJava DMCA.com Protection Status SiteMap Reference: Java Wiki