Polish doc code samples

See gh-6313
This commit is contained in:
Phillip Webb
2021-05-03 21:16:45 -07:00
parent 9aad29da0c
commit b5583a4620
165 changed files with 517 additions and 482 deletions

View File

@@ -368,7 +368,7 @@ To use the `DSLContext`, you can inject it, as shown in the following example:
[source,java,indent=0]
----
include::{docs-java}/features/sql/jooq/dslcontext/JooqExample.java[tag=!method]
include::{docs-java}/features/sql/jooq/dslcontext/MyBean.java[tag=!method]
----
TIP: The jOOQ manual tends to use a variable named `create` to hold the `DSLContext`.
@@ -377,7 +377,7 @@ You can then use the `DSLContext` to construct your queries, as shown in the fol
[source,java,indent=0]
----
include::{docs-java}/features/sql/jooq/dslcontext/JooqExample.java[tag=method]
include::{docs-java}/features/sql/jooq/dslcontext/MyBean.java[tag=method]
----
@@ -430,14 +430,14 @@ The following example shows how to manually override the database port while the
[source,java,indent=0]
----
include::{docs-java}/features/sql/r2dbc/MyR2dbcPortConfiguration.java[]
include::{docs-java}/features/sql/r2dbc/MyR2dbcConfiguration.java[]
----
The following examples show how to set some PostgreSQL connection options:
[source,java,indent=0]
----
include::{docs-java}/features/sql/r2dbc/CustomizeR2dbcPostgresOptionsConfiguration.java[tag=*]
include::{docs-java}/features/sql/r2dbc/MyPostgresR2dbcConfiguration.java[]
----
When a `ConnectionFactory` bean is available, the regular JDBC `DataSource` auto-configuration backs off.
@@ -474,7 +474,7 @@ A `DatabaseClient` bean is auto-configured, and you can `@Autowire` it directly
[source,java,indent=0]
----
include::{docs-java}/features/sql/r2dbc/usingdatabaseclient/MyBean.java[tag=*]
include::{docs-java}/features/sql/r2dbc/usingdatabaseclient/MyBean.java[]
----
@@ -494,7 +494,7 @@ The following example shows a typical Spring Data repository interface definitio
[source,java,indent=0]
----
include::{docs-java}/features/sql/r2dbc/repositories/CityRepository.java[tag=*]
include::{docs-java}/features/sql/r2dbc/repositories/CityRepository.java[]
----
TIP: We have barely scratched the surface of Spring Data R2DBC. For complete details, see the {spring-data-r2dbc-docs}[Spring Data R2DBC reference documentation].