Polish documentation

See gh-42445
This commit is contained in:
Tran Ngoc Nhan
2024-09-25 18:22:09 +07:00
committed by Moritz Halbritter
parent 02335a681b
commit db9cb54ce0
2 changed files with 3 additions and 3 deletions

View File

@@ -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[]

View File

@@ -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 <<howto#howto.webserver.discover-port,inject the actual port used>> 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[]