devxlogo

How to Set hibernate.format_sql in a Spring Boot Application

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

devx-admin

Share the Post: