diff --git a/build.gradle b/build.gradle index 413e4804..858760d6 100644 --- a/build.gradle +++ b/build.gradle @@ -23,7 +23,7 @@ dependencies { implementation 'org.springframework.boot:spring-boot-starter-security' implementation 'org.springframework.boot:spring-boot-starter-validation' implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.5' - implementation 'com.github.gavlyukovskiy:p6spy-spring-boot-starter:1.6.2' + implementation 'com.github.gavlyukovskiy:p6spy-spring-boot-starter:1.9.0' implementation 'me.paulschwarz:spring-dotenv:4.0.0' implementation 'org.springframework.security:spring-security-oauth2-client' diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 5513c22e..1e63a569 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -55,6 +55,10 @@ logging: type: descriptor: sql: debug +decorator: + datasource: + p6spy: + enable-logging: true --- spring: @@ -69,6 +73,7 @@ spring: hibernate: dialect: org.hibernate.dialect.MySQLDialect show-sql: true + jwt: expiration: 300000 refresh: diff --git a/src/test/resources/META-INF.spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/src/test/resources/META-INF.spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports new file mode 100644 index 00000000..95564833 --- /dev/null +++ b/src/test/resources/META-INF.spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports @@ -0,0 +1 @@ +com.github.gavlyukovskiy.boot.jdbc.decorator.DataSourceDecoratorAutoConfiguration \ No newline at end of file diff --git a/src/test/resources/application.yml b/src/test/resources/application.yml index f1985a73..d325250e 100644 --- a/src/test/resources/application.yml +++ b/src/test/resources/application.yml @@ -62,4 +62,9 @@ logging: hibernate: type: descriptor: - sql: debug \ No newline at end of file + sql: trace + +decorator: + datasource: + p6spy: + enable-logging: true diff --git a/src/test/resources/spy.properties b/src/test/resources/spy.properties new file mode 100644 index 00000000..33585472 --- /dev/null +++ b/src/test/resources/spy.properties @@ -0,0 +1 @@ +appender=com.p6spy.engine.spy.appender.Slf4JLogger \ No newline at end of file