January 7, 2020

How to Set hibernate.format_sql in a Spring Boot Application

For formatting the SQL statements in a Spring Boot application, we can set hibernate.format_sql in the application.properties as follows: spring.jpa.properties.hibernate.format_sql= true Related Articles Set Up a Database Dialect in Spring