How to set hibernate.format_sql in spring-boot?
Spring Boot will let you set any available hibernate property using:
spring.jpa.properties.*
So spring.jpa.properties.hibernate.format_sql=true
would work as well.
Check out this part of the documentation
If you are using yml
format to declare Spring Boot properties, you can use:
spring:
datasource:
jpa:
properties:
hibernate.format_sql: true
jpa:
hibernate:
ddl-auto: update
show-sql: true
properties:
hibernate.format_sql: true
This is very much available
spring.jpa.hibernate.format_sql=true