From db9cb54ce004941aae11d4ed866ba8724d1d438a Mon Sep 17 00:00:00 2001 From: Tran Ngoc Nhan Date: Wed, 25 Sep 2024 18:22:09 +0700 Subject: [PATCH] Polish documentation See gh-42445 --- .../spring-boot-docs/src/docs/asciidoc/data/sql.adoc | 4 ++-- .../spring-boot-docs/src/docs/asciidoc/features/testing.adoc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/data/sql.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/data/sql.adoc index 90c18fbaaca..54695c66e61 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/data/sql.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/data/sql.adoc @@ -157,7 +157,7 @@ For example, the following section in `application.properties` shows how you can [[data.sql.jdbc-template]] === Using JdbcTemplate -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: +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: include::code:MyBean[] @@ -501,7 +501,7 @@ If you want to make sure that each context has a separate embedded database, you [[data.sql.r2dbc.using-database-client]] ==== Using DatabaseClient -A `DatabaseClient` bean is auto-configured, and you can `@Autowire` it directly into your own beans, as shown in the following example: +A `DatabaseClient` bean is auto-configured, and you can autowire it directly into your own beans, as shown in the following example: include::code:MyBean[] diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/testing.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/testing.adoc index 225a0d9c6d7..6214a099776 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/testing.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/testing.adoc @@ -227,7 +227,7 @@ If you need to start a full running server, we recommend that you use random por If you use `@SpringBootTest(webEnvironment=WebEnvironment.RANDOM_PORT)`, an available port is picked at random each time your test runs. The `@LocalServerPort` annotation can be used to <> into your test. -For convenience, tests that need to make REST calls to the started server can additionally `@Autowire` a {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: +For convenience, tests that need to make REST calls to the started server can additionally autowire a {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: include::code:MyRandomPortWebTestClientTests[]