Fix WebFlux blocking configuration documentation

BlockingExecutionConfigurer#setExecutor takes an AsyncTaskExecutor
not an Executor as the documentation states. With this commit,
this has been corrected.

Closes gh-31150
This commit is contained in:
Marten Deinum
2023-09-01 09:20:49 +02:00
committed by Sébastien Deleuze
parent 093d6a1bec
commit acd34df0d5

View File

@@ -745,7 +745,7 @@ reliance on it.
The WebFlux Java config allows you to customize blocking execution in WebFlux.
You can have blocking controller methods called on a separate thread by providing
an `Executor` such as the
an `AsyncTaskExecutor` such as the
{api-spring-framework}/core/task/VirtualThreadTaskExecutor.html[`VirtualThreadTaskExecutor`]
as follows:
@@ -761,7 +761,7 @@ Java::
@Override
public void configureBlockingExecution(BlockingExecutionConfigurer configurer) {
Executor executor = ...
AsyncTaskExecutor executor = ...
configurer.setExecutor(executor);
}
}