Skip to content

Commit eaaf977

Browse files
committed
Merge branch '3.0.x' into 3.1.x
Closes gh-38288
2 parents 45abef1 + 40063ee commit eaaf977

22 files changed

+56
-55
lines changed

spring-boot-project/spring-boot-docs/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,9 @@ tasks.withType(org.asciidoctor.gradle.jvm.AbstractAsciidoctorTask) {
300300
}
301301
doFirst {
302302
def versionConstraints = dependencyVersions.versionConstraints
303-
def securityVersion = versionConstraints["org.springframework.security:spring-security-core"]
304-
if (securityVersion.endsWith("-SNAPSHOT")) {
305-
securityVersion = securityVersion.substring(0, securityVersion.length() - "-SNAPSHOT".length())
303+
def toAntoraVersion = version -> {
304+
String formatted = version.split("\\.").take(2).join('.')
305+
return version.endsWith("-SNAPSHOT") ? formatted + "-SNAPSHOT" : formatted
306306
}
307307
attributes "hibernate-version": versionConstraints["org.hibernate.orm:hibernate-core"].split("\\.").take(2).join('.'),
308308
"jetty-version": versionConstraints["org.eclipse.jetty:jetty-server"],
@@ -314,18 +314,18 @@ tasks.withType(org.asciidoctor.gradle.jvm.AbstractAsciidoctorTask) {
314314
"spring-boot-version": project.version,
315315
"spring-data-commons-version": versionConstraints["org.springframework.data:spring-data-commons"],
316316
"spring-data-couchbase-version": versionConstraints["org.springframework.data:spring-data-couchbase"],
317-
"spring-data-envers-version": versionConstraints["org.springframework.data:spring-data-envers"],
318317
"spring-data-jdbc-version": versionConstraints["org.springframework.data:spring-data-jdbc"],
319318
"spring-data-jpa-version": versionConstraints["org.springframework.data:spring-data-jpa"],
320319
"spring-data-mongodb-version": versionConstraints["org.springframework.data:spring-data-mongodb"],
321320
"spring-data-neo4j-version": versionConstraints["org.springframework.data:spring-data-neo4j"],
322321
"spring-data-r2dbc-version": versionConstraints["org.springframework.data:spring-data-r2dbc"],
323322
"spring-data-rest-version": versionConstraints["org.springframework.data:spring-data-rest-core"],
324323
"spring-framework-version": versionConstraints["org.springframework:spring-core"],
324+
"spring-framework-version-antora": toAntoraVersion(versionConstraints["org.springframework:spring-core"]),
325325
"spring-graphql-version": versionConstraints["org.springframework.graphql:spring-graphql"],
326326
"spring-integration-version": versionConstraints["org.springframework.integration:spring-integration-core"],
327327
"spring-kafka-version": versionConstraints["org.springframework.kafka:spring-kafka"],
328-
"spring-security-version": securityVersion,
328+
"spring-security-version-antora": toAntoraVersion(versionConstraints["org.springframework.security:spring-security-core"]),
329329
"spring-authorization-server-version": versionConstraints["org.springframework.security:spring-security-oauth2-authorization-server"],
330330
"spring-webservices-version": versionConstraints["org.springframework.ws:spring-ws-core"],
331331
"tomcat-version": tomcatVersion.split("\\.").take(2).join('.'),

spring-boot-project/spring-boot-docs/src/docs/asciidoc/actuator/metrics.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ Auto-configuration enables the instrumentation of all requests handled by Spring
747747
By default, metrics are generated with the name, `http.server.requests`.
748748
You can customize the name by setting the configprop:management.observations.http.server.requests.name[] property.
749749

750-
See the {spring-framework-docs}/integration.html#integration.observability.http-server.servlet[Spring Framework reference documentation for more information on produced observations].
750+
See the {spring-framework-docs}/integration/observability.html#observability.http-server.servlet[Spring Framework reference documentation for more information on produced observations].
751751

752752
To add to the default tags, provide a `@Bean` that extends `DefaultServerRequestObservationConvention` from the `org.springframework.http.server.observation` package.
753753
To replace the default tags, provide a `@Bean` that implements `ServerRequestObservationConvention`.
@@ -767,7 +767,7 @@ Auto-configuration enables the instrumentation of all requests handled by Spring
767767
By default, metrics are generated with the name, `http.server.requests`.
768768
You can customize the name by setting the configprop:management.observations.http.server.requests.name[] property.
769769

770-
See the {spring-framework-docs}/integration.html#integration.observability.http-server.reactive[Spring Framework reference documentation for more information on produced observations].
770+
See the {spring-framework-docs}/integration/observability.html#observability.http-server.reactive[Spring Framework reference documentation for more information on produced observations].
771771

772772
To add to the default tags, provide a `@Bean` that extends `DefaultServerRequestObservationConvention` from the `org.springframework.http.server.reactive.observation` package.
773773
To replace the default tags, provide a `@Bean` that implements `ServerRequestObservationConvention`.
@@ -822,7 +822,7 @@ You can also manually apply the customizers responsible for this instrumentation
822822
By default, metrics are generated with the name, `http.client.requests`.
823823
You can customize the name by setting the configprop:management.observations.http.client.requests.name[] property.
824824

825-
See the {spring-framework-docs}/integration.html#integration.observability.http-client[Spring Framework reference documentation for more information on produced observations].
825+
See the {spring-framework-docs}/integration/observability.html#observability.http-client[Spring Framework reference documentation for more information on produced observations].
826826

827827
To customize the tags when using `RestTemplate`, provide a `@Bean` that implements `ClientRequestObservationConvention` from the `org.springframework.http.client.observation` package.
828828
To customize the tags when using `WebClient`, provide a `@Bean` that implements `ClientRequestObservationConvention` from the `org.springframework.web.reactive.function.client` package.

spring-boot-project/spring-boot-docs/src/docs/asciidoc/attributes.adoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565
:spring-data-elasticsearch: https://spring.io/projects/spring-data-elasticsearch
6666
:spring-data-elasticsearch-docs: https://docs.spring.io/spring-data/elasticsearch/docs/current/reference/html/
6767
:spring-data-envers: https://spring.io/projects/spring-data-envers
68-
:spring-data-envers-doc: https://docs.spring.io/spring-data/envers/docs/{spring-data-envers-version}/reference/html/
6968
:spring-data-gemfire: https://spring.io/projects/spring-data-gemfire
7069
:spring-data-geode: https://spring.io/projects/spring-data-geode
7170
:spring-data-jpa: https://spring.io/projects/spring-data-jpa
@@ -83,7 +82,7 @@
8382
:spring-data-rest-api: https://docs.spring.io/spring-data/rest/docs/{spring-data-rest-version}/api/org/springframework/data/rest
8483
:spring-framework: https://spring.io/projects/spring-framework
8584
:spring-framework-api: https://docs.spring.io/spring-framework/docs/{spring-framework-version}/javadoc-api/org/springframework
86-
:spring-framework-docs: https://docs.spring.io/spring-framework/docs/{spring-framework-version}/reference/html
85+
:spring-framework-docs: https://docs.spring.io/spring-framework/reference/{spring-framework-version-antora}
8786
:spring-graphql: https://spring.io/projects/spring-graphql
8887
:spring-graphql-api: https://docs.spring.io/spring-graphql/docs/{spring-graphql-version}/api/
8988
:spring-graphql-docs: https://docs.spring.io/spring-graphql/docs/{spring-graphql-version}/reference/html/
@@ -92,7 +91,7 @@
9291
:spring-kafka-docs: https://docs.spring.io/spring-kafka/docs/{spring-kafka-version}/reference/html/
9392
:spring-restdocs: https://spring.io/projects/spring-restdocs
9493
:spring-security: https://spring.io/projects/spring-security
95-
:spring-security-docs: https://docs.spring.io/spring-security/reference/{spring-security-version}
94+
:spring-security-docs: https://docs.spring.io/spring-security/reference/{spring-security-version-antora}
9695
:spring-authorization-server: https://spring.io/projects/spring-authorization-server
9796
:spring-authorization-server-docs: https://docs.spring.io/spring-authorization-server/docs/{spring-authorization-server-version}/reference/html
9897
:spring-session: https://spring.io/projects/spring-session

spring-boot-project/spring-boot-docs/src/docs/asciidoc/data/sql.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ To use Spring Data Envers, make sure your repository extends from `RevisionRepos
249249

250250
include::code:CountryRepository[]
251251

252-
NOTE: For more details, check the {spring-data-envers-doc}[Spring Data Envers reference documentation].
252+
NOTE: For more details, check the {spring-data-jpa-docs}/#envers[Spring Data Envers reference documentation].
253253

254254

255255

spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/aop.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[[features.aop]]
22
== Aspect-Oriented Programming
33
Spring Boot provides auto-configuration for aspect-oriented programming (AOP).
4-
You can learn more about AOP with Spring in the {spring-framework-docs}/core.html#aop[Spring Framework reference documentation].
4+
You can learn more about AOP with Spring in the {spring-framework-docs}/core/aop-api.html[Spring Framework reference documentation].
55

66
By default, Spring Boot's auto-configuration configures Spring AOP to use CGLib proxies.
77
To use JDK proxies instead, set `configprop:spring.aop.proxy-target-class` to `false`.

spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/developing-auto-configuration.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ This condition will not match for applications that are run with an embedded web
136136

137137
[[features.developing-auto-configuration.condition-annotations.spel-conditions]]
138138
==== SpEL Expression Conditions
139-
The `@ConditionalOnExpression` annotation lets configuration be included based on the result of a {spring-framework-docs}/core.html#expressions[SpEL expression].
139+
The `@ConditionalOnExpression` annotation lets configuration be included based on the result of a {spring-framework-docs}/core/expressions.html[SpEL expression].
140140

141141
NOTE: Referencing a bean in the expression will cause that bean to be initialized very early in context refresh processing.
142142
As a result, the bean won't be eligible for post-processing (such as configuration properties binding) and its state may be incomplete.

spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/kotlin.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
https://kotlinlang.org[Kotlin] is a statically-typed language targeting the JVM (and other platforms) which allows writing concise and elegant code while providing {kotlin-docs}java-interop.html[interoperability] with existing libraries written in Java.
44

55
Spring Boot provides Kotlin support by leveraging the support in other Spring projects such as Spring Framework, Spring Data, and Reactor.
6-
See the {spring-framework-docs}/languages.html#kotlin[Spring Framework Kotlin support documentation] for more information.
6+
See the {spring-framework-docs}/languages/kotlin.html[Spring Framework Kotlin support documentation] for more information.
77

88
The easiest way to start with Spring Boot and Kotlin is to follow https://spring.io/guides/tutorials/spring-boot-kotlin/[this comprehensive tutorial].
99
You can create new Kotlin projects by using https://start.spring.io/#!language=kotlin[start.spring.io].

spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/logging.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ Profile sections are supported anywhere within the `<configuration>` element.
443443
Use the `name` attribute to specify which profile accepts the configuration.
444444
The `<springProfile>` tag can contain a profile name (for example `staging`) or a profile expression.
445445
A profile expression allows for more complicated profile logic to be expressed, for example `production & (eu-central | eu-west)`.
446-
Check the {spring-framework-docs}/core.html#beans-definition-profiles-java[Spring Framework reference guide] for more details.
446+
Check the {spring-framework-docs}/core/beans/environment.html#beans-definition-profiles-java[Spring Framework reference guide] for more details.
447447
The following listing shows three sample profiles:
448448

449449
[source,xml,subs="verbatim",indent=0]
@@ -508,7 +508,7 @@ Profile sections are supported anywhere within the `<Configuration>` element.
508508
Use the `name` attribute to specify which profile accepts the configuration.
509509
The `<SpringProfile>` tag can contain a profile name (for example `staging`) or a profile expression.
510510
A profile expression allows for more complicated profile logic to be expressed, for example `production & (eu-central | eu-west)`.
511-
Check the {spring-framework-docs}/core.html#beans-definition-profiles-java[Spring Framework reference guide] for more details.
511+
Check the {spring-framework-docs}/core/beans/environment.html#beans-definition-profiles-java[Spring Framework reference guide] for more details.
512512
The following listing shows three sample profiles:
513513

514514
[source,xml,subs="verbatim",indent=0]

spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/spring-application.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ TIP: If you want to know on which HTTP port the application is running, get the
356356
=== Application Startup tracking
357357
During the application startup, the `SpringApplication` and the `ApplicationContext` perform many tasks related to the application lifecycle,
358358
the beans lifecycle or even processing application events.
359-
With {spring-framework-api}/core/metrics/ApplicationStartup.html[`ApplicationStartup`], Spring Framework {spring-framework-docs}/core.html#context-functionality-startup[allows you to track the application startup sequence with `StartupStep` objects].
359+
With {spring-framework-api}/core/metrics/ApplicationStartup.html[`ApplicationStartup`], Spring Framework {spring-framework-docs}/core/beans/context-introduction.html#context-functionality-startup[allows you to track the application startup sequence with `StartupStep` objects].
360360
This data can be collected for profiling purposes, or just to have a better understanding of an application startup process.
361361

362362
You can choose an `ApplicationStartup` implementation when setting up the `SpringApplication` instance.

0 commit comments

Comments
 (0)