added sql logging

This commit is contained in:
Greg Gauthier 2020-11-19 08:49:01 +00:00
parent e9a1670133
commit 478c439300
1 changed files with 6 additions and 0 deletions

View File

@ -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