Skip to content

Commit db7460d

Browse files
committed
Polish contribution based on Andy's review
See gh-26188
1 parent b1170ef commit db7460d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7528,7 +7528,7 @@ You can use the `@DataJpaTest` annotation to test JPA applications.
75287528
By default, it scans for `@Entity` classes and configures Spring Data JPA repositories.
75297529
If an embedded database is available on the classpath, it configures one as well.
75307530
SQL queries are logged by default by setting the `spring.jpa.show-sql` property to `true`.
7531-
This can be disabled by using the `showSql()` attribute of the annotation.
7531+
This can be disabled using the `showSql()` attribute of the annotation.
75327532

75337533
Regular `@Component` and `@ConfigurationProperties` beans are not scanned when the `@DataJpaTest` annotation is used.
75347534
`@EnableConfigurationProperties` can be used to include `@ConfigurationProperties` beans.

spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/orm/jpa/DataJpaTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2021 the original author or authors.
2+
* Copyright 2012-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -54,8 +54,8 @@
5454
* override these settings.
5555
* <p>
5656
* SQL queries are logged by default by setting the {@code spring.jpa.show-sql} property
57-
* to {@code true}. This can be disabled by using the {@link DataJpaTest#showSql()
58-
* showSql} attribute.
57+
* to {@code true}. This can be disabled using the {@link DataJpaTest#showSql() showSql}
58+
* attribute.
5959
* <p>
6060
* If you are looking to load your full application configuration, but use an embedded
6161
* database, you should consider {@link SpringBootTest @SpringBootTest} combined with

0 commit comments

Comments
 (0)