diff --git a/src/docs/asciidoc/core/core-beans.adoc b/src/docs/asciidoc/core/core-beans.adoc index 8504f77155..a1f3e9539a 100644 --- a/src/docs/asciidoc/core/core-beans.adoc +++ b/src/docs/asciidoc/core/core-beans.adoc @@ -4993,6 +4993,7 @@ The same applies for typed collections, as the following example shows: } ---- +[[beans-factory-ordered]] [TIP] ==== Your target beans can implement the `org.springframework.core.Ordered` interface or use diff --git a/src/docs/asciidoc/web/webflux-functional.adoc b/src/docs/asciidoc/web/webflux-functional.adoc index 9d504c0bc8..39711bded5 100644 --- a/src/docs/asciidoc/web/webflux-functional.adoc +++ b/src/docs/asciidoc/web/webflux-functional.adoc @@ -505,6 +505,8 @@ The example shown above also uses two request predicates, as the builder uses Router functions are evaluated in order: if the first route does not match, the second is evaluated, and so on. Therefore, it makes sense to declare more specific routes before general ones. +This is also important when registering router functions as Spring beans, as will +be described later. Note that this behavior is different from the annotation-based programming model, where the "most specific" controller method is picked automatically. @@ -656,8 +658,8 @@ components required to process requests. The WebFlux Java configuration declares infrastructure components to support functional endpoints: * `RouterFunctionMapping`: Detects one or more `RouterFunction` beans in the Spring -configuration, combines them through `RouterFunction.andOther`, and routes requests to the -resulting composed `RouterFunction`. +configuration, <>, combines them through +`RouterFunction.andOther`, and routes requests to the resulting composed `RouterFunction`. * `HandlerFunctionAdapter`: Simple adapter that lets `DispatcherHandler` invoke a `HandlerFunction` that was mapped to a request. * `ServerResponseResultHandler`: Handles the result from the invocation of a diff --git a/src/docs/asciidoc/web/webmvc-functional.adoc b/src/docs/asciidoc/web/webmvc-functional.adoc index 56de64c38c..368654f02c 100644 --- a/src/docs/asciidoc/web/webmvc-functional.adoc +++ b/src/docs/asciidoc/web/webmvc-functional.adoc @@ -525,6 +525,8 @@ The example shown above also uses two request predicates, as the builder uses Router functions are evaluated in order: if the first route does not match, the second is evaluated, and so on. Therefore, it makes sense to declare more specific routes before general ones. +This is also important when registering router functions as Spring beans, as will +be described later. Note that this behavior is different from the annotation-based programming model, where the "most specific" controller method is picked automatically. @@ -672,8 +674,8 @@ components required to process requests. The MVC Java configuration declares the infrastructure components to support functional endpoints: * `RouterFunctionMapping`: Detects one or more `RouterFunction` beans in the Spring -configuration, combines them through `RouterFunction.andOther`, and routes requests to the -resulting composed `RouterFunction`. +configuration, <>, combines them through +`RouterFunction.andOther`, and routes requests to the resulting composed `RouterFunction`. * `HandlerFunctionAdapter`: Simple adapter that lets `DispatcherHandler` invoke a `HandlerFunction` that was mapped to a request.