From 2094722e5d64e116a91a31086861aa0795fda8e8 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 14 Jun 2022 11:52:06 +0100 Subject: [PATCH] Remove duplicate content from "The Spring WebFlux Framework" Closes gh-31378 --- .../src/docs/asciidoc/web/reactive.adoc | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/web/reactive.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/web/reactive.adoc index dd1498992a07..e291c5f8de4e 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/web/reactive.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/web/reactive.adoc @@ -39,28 +39,6 @@ This behavior has been chosen because many Spring developers add `spring-boot-st You can still enforce your choice by setting the chosen application type to `SpringApplication.setWebApplicationType(WebApplicationType.REACTIVE)`. -"`WebFlux.fn`", the functional variant, separates the routing configuration from the actual handling of the requests, as shown in the following example: - -[source,java,indent=0,subs="verbatim"] ----- -include::{docs-java}/web/reactive/webflux/MyRoutingConfiguration.java[] ----- - -[source,java,indent=0,subs="verbatim"] ----- -include::{docs-java}/web/reactive/webflux/MyUserHandler.java[] ----- - -WebFlux is part of the Spring Framework and detailed information is available in its {spring-framework-docs}/web-reactive.html#webflux-fn[reference documentation]. - -TIP: You can define as many `RouterFunction` beans as you like to modularize the definition of the router. -Beans can be ordered if you need to apply a precedence. - -To get started, add the `spring-boot-starter-webflux` module to your application. - -NOTE: Adding both `spring-boot-starter-web` and `spring-boot-starter-webflux` modules in your application results in Spring Boot auto-configuring Spring MVC, not WebFlux. -This behavior has been chosen because many Spring developers add `spring-boot-starter-webflux` to their Spring MVC application to use the reactive `WebClient`. -You can still enforce your choice by setting the chosen application type to `SpringApplication.setWebApplicationType(WebApplicationType.REACTIVE)`. [[web.reactive.webflux.auto-configuration]] ==== Spring WebFlux Auto-configuration