Document that @Sql requires spring-jdbc & spring-tx on the classpath

Closes gh-30280
This commit is contained in:
Sam Brannen 2023-06-16 13:39:35 +02:00
parent 03420f811b
commit ed5c19f53e
2 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright 2002-2022 the original author or authors.
* Copyright 2002-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -57,6 +57,9 @@ import org.springframework.core.annotation.AliasFor;
* {@link org.springframework.test.context.NestedTestConfiguration @NestedTestConfiguration}
* for details.
*
* <p>Use of this annotation requires that that the {@code spring-jdbc} and
* {@code spring-tx} modules be present in the classpath.
*
* @author Sam Brannen
* @since 4.1
* @see SqlConfig

View File

@ -92,6 +92,10 @@ import static org.springframework.util.ResourceUtils.CLASSPATH_URL_PREFIX;
* on permissible configuration constellations and on the algorithms used to
* locate these beans.
*
* <h3>Required Dependencies</h3>
* <p>Use of this listener requires that that the {@code spring-jdbc} and
* {@code spring-tx} modules be present in the classpath.
*
* @author Sam Brannen
* @author Dmitry Semukhin
* @since 4.1