From 478c439300d168e6d9ef2bd187a990ac0c1dfb09 Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Thu, 19 Nov 2020 08:49:01 +0000 Subject: [PATCH] added sql logging --- src/main/resources/application.properties | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index c4fc3ef..39d4078 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -12,3 +12,9 @@ demo.resourceCount=10 spring.datasource.url=jdbc:mysql://192.168.0.131:3306/testdb?useSSL=false&serverTimezone=UTC spring.datasource.username=testdb spring.datasource.password=testdb + +#this line shows the sql statement in the logs +logging.level.org.hibernate.SQL=debug + +#this line shows sql values in the logs +logging.level.org.hibernate.type.descriptor.sql=trace \ No newline at end of file