Align docs package structure with heading IDs

See gh-6313
This commit is contained in:
Phillip Webb
2021-04-29 16:53:40 -07:00
parent 2c770217bb
commit 09e85806d6
297 changed files with 401 additions and 1594 deletions

View File

@@ -160,7 +160,7 @@ Spring's `JdbcTemplate` and `NamedParameterJdbcTemplate` classes are auto-config
[source,java,indent=0]
----
include::{include-springbootfeatures}/sql/jdbctemplate/MyBean.java[]
include::{docs-java}/features/sql/jdbctemplate/MyBean.java[]
----
You can customize some properties of the template by using the `spring.jdbc.template.*` properties, as shown in the following example:
@@ -204,7 +204,7 @@ A typical entity class resembles the following example:
[source,java,indent=0]
----
include::{include-springbootfeatures}/sql/jpa/City.java[]
include::{docs-java}/features/sql/jpaandspringdata/entityclasses/City.java[]
----
TIP: You can customize entity scanning locations by using the `@EntityScan` annotation.
@@ -227,7 +227,7 @@ The following example shows a typical Spring Data repository interface definitio
[source,java,indent=0]
----
include::{include-springbootfeatures}/sql/jpa/CityRepository.java[]
include::{docs-java}/features/sql/jpaandspringdata/repositories/CityRepository.java[]
----
Spring Data JPA repositories support three different modes of bootstrapping: default, deferred, and lazy.
@@ -368,7 +368,7 @@ To use the `DSLContext`, you can inject it, as shown in the following example:
[source,java,indent=0]
----
include::{include-springbootfeatures}/sql/jooq/JooqExample.java[tag=!method]
include::{docs-java}/features/sql/jooq/dslcontext/JooqExample.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::{include-springbootfeatures}/sql/jooq/JooqExample.java[tag=method]
include::{docs-java}/features/sql/jooq/dslcontext/JooqExample.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::{include-springbootfeatures}/sql/r2dbc/CustomizeR2dbcPortConfiguration.java[tag=*]
include::{docs-java}/features/sql/r2dbc/CustomizeR2dbcPortConfiguration.java[tag=*]
----
The following examples show how to set some PostgreSQL connection options:
[source,java,indent=0]
----
include::{include-springbootfeatures}/sql/r2dbc/CustomizeR2dbcPostgresOptionsConfiguration.java[tag=*]
include::{docs-java}/features/sql/r2dbc/CustomizeR2dbcPostgresOptionsConfiguration.java[tag=*]
----
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::{include-springbootfeatures}/sql/r2dbc/databaseclient/MyBean.java[tag=*]
include::{docs-java}/features/sql/r2dbc/usingdatabaseclient/MyBean.java[tag=*]
----
@@ -494,7 +494,7 @@ The following example shows a typical Spring Data repository interface definitio
[source,java,indent=0]
----
include::{include-springbootfeatures}/sql/r2dbc/CityRepository.java[tag=*]
include::{docs-java}/features/sql/r2dbc/repositories/CityRepository.java[tag=*]
----
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].