Browse Source

Remove `@EnableWebFlux` from documentation code snippets

Like what we did for `@EnableWebMvc`, we want to remove `@EnableWebFlux`
from typical code snippets extending WebFluxConfigurer to make them more
Spring Boot friendly.

Closes gh-36091
pull/36095/head
Sébastien Deleuze 4 weeks ago
parent
commit
3ddaf51f5d
  1. 2
      framework-docs/modules/ROOT/pages/web/webflux-cors.adoc
  2. 2
      framework-docs/modules/ROOT/pages/web/webflux-functional.adoc
  3. 2
      framework-docs/modules/ROOT/pages/web/webflux/reactive-spring.adoc

2
framework-docs/modules/ROOT/pages/web/webflux-cors.adoc

@ -305,7 +305,6 @@ Java:: @@ -305,7 +305,6 @@ Java::
[source,java,indent=0,subs="verbatim,quotes"]
----
@Configuration
@EnableWebFlux
public class WebConfig implements WebFluxConfigurer {
@Override
@ -328,7 +327,6 @@ Kotlin:: @@ -328,7 +327,6 @@ Kotlin::
[source,kotlin,indent=0,subs="verbatim,quotes"]
----
@Configuration
@EnableWebFlux
class WebConfig : WebFluxConfigurer {
override fun addCorsMappings(registry: CorsRegistry) {

2
framework-docs/modules/ROOT/pages/web/webflux-functional.adoc

@ -639,7 +639,6 @@ Java:: @@ -639,7 +639,6 @@ Java::
[source,java,indent=0,subs="verbatim,quotes"]
----
@Configuration
@EnableWebFlux
public class WebConfig implements WebFluxConfigurer {
@Bean
@ -676,7 +675,6 @@ Kotlin:: @@ -676,7 +675,6 @@ Kotlin::
[source,kotlin,indent=0,subs="verbatim,quotes"]
----
@Configuration
@EnableWebFlux
class WebConfig : WebFluxConfigurer {
@Bean

2
framework-docs/modules/ROOT/pages/web/webflux/reactive-spring.adoc

@ -658,7 +658,6 @@ Java:: @@ -658,7 +658,6 @@ Java::
[source,java,indent=0,subs="verbatim,quotes"]
----
@Configuration
@EnableWebFlux
class MyConfig implements WebFluxConfigurer {
@Override
@ -673,7 +672,6 @@ Kotlin:: @@ -673,7 +672,6 @@ Kotlin::
[source,kotlin,indent=0,subs="verbatim,quotes"]
----
@Configuration
@EnableWebFlux
class MyConfig : WebFluxConfigurer {
override fun configureHttpMessageCodecs(configurer: ServerCodecConfigurer) {

Loading…
Cancel
Save