Skip to content

Commit f417cec

Browse files
authored
Merge pull request #170 from hohwille/feature/show-sql
show SQL from hibernate during development for debugging
2 parents 1e1d37e + 50a7e1d commit f417cec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

templates/server/src/main/resources/archetype-resources/core/src/main/resources/config/application.properties

+4
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ spring.datasource.password=todo
4040
spring.datasource.url=jdbc:${dbType}:TODO
4141
#end
4242

43+
# print SQL to console for debugging (e.g. detect N+1 issues)
44+
spring.jpa.show-sql=true
45+
spring.jpa.properties.hibernate.format_sql=true
46+
4347
# Enable JSON pretty printing
4448
spring.jackson.serialization.INDENT_OUTPUT=true
4549

0 commit comments

Comments
 (0)