Document default behaviour of DataJpaTest#showSql
Closes gh-25843
This commit is contained in:
@@ -53,6 +53,10 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
* {@link AutoConfigureTestDatabase @AutoConfigureTestDatabase} annotation can be used to
|
||||
* override these settings.
|
||||
* <p>
|
||||
* SQL queries are logged by default by setting the {@code spring.jpa.show-sql} property
|
||||
* to {@code true}. This can be disabled using the {@link DataJpaTest#showSql() showSql}
|
||||
* attribute.
|
||||
* <p>
|
||||
* If you are looking to load your full application configuration, but use an embedded
|
||||
* database, you should consider {@link SpringBootTest @SpringBootTest} combined with
|
||||
* {@link AutoConfigureTestDatabase @AutoConfigureTestDatabase} rather than this
|
||||
|
||||
Reference in New Issue
Block a user