Add AbstractReactiveWebInitializer
This commit introduces a new AbstractReactiveWebInitializer in spring-web that relies on WebHttpHandlerBuilder to detect request processing infrastructure beans from an ApplicationContext. This eliminates the need to create a DispatcherHandler, since it is expected to be a Spring bean, and as a result the initializers in spring-webflux have been deprecated. Issue: SPR-16144
This commit is contained in:
@@ -361,9 +361,9 @@ server.start();
|
||||
[NOTE]
|
||||
====
|
||||
To deploy as a WAR to a Servlet 3.1+ container, wrap `HttpHandler` with
|
||||
`ServletHttpHandlerAdapter` and register that as a `Servlet`. Use
|
||||
{api-spring-framework}/web/reactive/support/AbstractServletHttpHandlerAdapterInitializer.html[AbstractServletHttpHandlerAdapterInitializer]
|
||||
to automate the required Servlet container configuration.
|
||||
`ServletHttpHandlerAdapter` and register that as a `Servlet`.
|
||||
This can be automated through the use of
|
||||
{api-spring-framework}/web/server/adapter/AbstractReactiveWebInitializer.html[AbstractReactiveWebInitializer].
|
||||
====
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user