mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Polish
See gh-26188
This commit is contained in:
parent
8edeb2c7a9
commit
4be48d0d50
@ -7528,7 +7528,7 @@ You can use the `@DataJpaTest` annotation to test JPA applications.
|
||||
By default, it scans for `@Entity` classes and configures Spring Data JPA repositories.
|
||||
If an embedded database is available on the classpath, it configures one as well.
|
||||
SQL queries are logged by default by setting the `spring.jpa.show-sql` property to `true`.
|
||||
This can be disabled using the `showSql()` attribute of the annotation.
|
||||
This can be disabled by using the `showSql()` attribute of the annotation.
|
||||
|
||||
Regular `@Component` and `@ConfigurationProperties` beans are not scanned when the `@DataJpaTest` annotation is used.
|
||||
`@EnableConfigurationProperties` can be used to include `@ConfigurationProperties` beans.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
* Copyright 2012-2021 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.
|
||||
@ -54,8 +54,8 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
* 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.
|
||||
* to {@code true}. This can be disabled by 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
|
||||
|
Loading…
Reference in New Issue
Block a user