added sql logging

master
Greg Gauthier 3 years ago
parent e9a1670133
commit 478c439300
  1. 6
      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
Loading…
Cancel
Save