Skip to content

Commit 3d32254

Browse files
change use autowire
1 parent fe881e2 commit 3d32254

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/data/sql.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ spring:
165165
[[data.sql.jdbc-template]]
166166
== Using JdbcTemplate
167167

168-
Spring's `JdbcTemplate` and `NamedParameterJdbcTemplate` classes are auto-configured, and you can `@Autowired` them directly into your own beans, as shown in the following example:
168+
Spring's `JdbcTemplate` and `NamedParameterJdbcTemplate` classes are auto-configured, and you can autowire them directly into your own beans, as shown in the following example:
169169

170170
include-code::MyBean[]
171171

@@ -528,7 +528,7 @@ If you want to make sure that each context has a separate embedded database, you
528528
[[data.sql.r2dbc.using-database-client]]
529529
=== Using DatabaseClient
530530

531-
A `DatabaseClient` bean is auto-configured, and you can `@Autowired` it directly into your own beans, as shown in the following example:
531+
A `DatabaseClient` bean is auto-configured, and you can autowire it directly into your own beans, as shown in the following example:
532532

533533
include-code::MyBean[]
534534

spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/testing/spring-boot-applications.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ If you need to start a full running server, we recommend that you use random por
176176
If you use `@SpringBootTest(webEnvironment=WebEnvironment.RANDOM_PORT)`, an available port is picked at random each time your test runs.
177177

178178
The `@LocalServerPort` annotation can be used to xref:how-to:webserver.adoc#howto.webserver.discover-port[inject the actual port used] into your test.
179-
For convenience, tests that need to make REST calls to the started server can additionally `@Autowired` a {url-spring-framework-docs}/testing/webtestclient.html[`WebTestClient`], which resolves relative links to the running server and comes with a dedicated API for verifying responses, as shown in the following example:
179+
For convenience, tests that need to make REST calls to the started server can additionally autowire a {url-spring-framework-docs}/testing/webtestclient.html[`WebTestClient`], which resolves relative links to the running server and comes with a dedicated API for verifying responses, as shown in the following example:
180180

181181
include-code::MyRandomPortWebTestClientTests[]
182182

0 commit comments

Comments
 (0)