How to Set hibernate.format_sql in a Spring Boot Application January 7, 2020 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