Document WebFilter is scanned by @WebFluxTest

See gh-17601
This commit is contained in:
Stephane Nicoll 2019-07-23 09:01:32 +02:00
parent 94a757113d
commit 26ee9150b2
1 changed files with 3 additions and 3 deletions

View File

@ -7495,9 +7495,9 @@ full end-to-end tests with an actual server>>.
To test that {spring-reference}/web-reactive.html[Spring WebFlux] controllers are
working as expected, you can use the `@WebFluxTest` annotation. `@WebFluxTest`
auto-configures the Spring WebFlux infrastructure and limits scanned beans to
`@Controller`, `@ControllerAdvice`, `@JsonComponent`, `Converter`, `GenericConverter`, and
`WebFluxConfigurer`. Regular `@Component` beans are not scanned when the `@WebFluxTest`
annotation is used.
`@Controller`, `@ControllerAdvice`, `@JsonComponent`, `Converter`, `GenericConverter`,
`WebFilter`, and `WebFluxConfigurer`. Regular `@Component` beans are not scanned when the
`@WebFluxTest` annotation is used.
TIP: A list of the auto-configurations that are enabled by `@WebFluxTest` can be
<<appendix.adoc#test-auto-configuration,found in the appendix>>.