Document how to log @⁠Sql scripts and statements

Closes gh-31589
This commit is contained in:
Sam Brannen
2023-11-10 11:19:38 +01:00
parent 6c3a3dc7d9
commit 8a7144ba42
2 changed files with 14 additions and 0 deletions

View File

@@ -60,6 +60,11 @@ import org.springframework.core.annotation.AliasFor;
* for details. This annotation may also be used as a <em>meta-annotation</em> to
* create custom <em>composed annotations</em> with attribute overrides.
*
* <p>If you want to see which SQL scripts are being executed, set the
* {@code org.springframework.test.context.jdbc} logging category to {@code DEBUG}.
* If you want to see which SQL statements are being executed, set the
* {@code org.springframework.jdbc.datasource.init} logging category to {@code DEBUG}.
*
* <p>Use of this annotation requires the {@code spring-jdbc} and {@code spring-tx}
* modules as well as their transitive dependencies to be present on the classpath.
*