War deployment is not supported for WebFlux apps

Even though War deployment is supported by Spring Framework itself for
WebFlux applications, this is not the case currently in Spring Boot.

Fixes gh-12455
pull/12511/head
Brian Clozel 7 years ago
parent a0b9974796
commit 2561f320e8

@ -2842,6 +2842,10 @@ This section answers common questions about traditional deployment.
[[howto-create-a-deployable-war-file]] [[howto-create-a-deployable-war-file]]
=== Create a Deployable War File === Create a Deployable War File
WARNING: Because Spring WebFlux does not strictly depend on the Servlet API and
applications are deployed by default on an embedded Reactor Netty server,
War deployment is not supported for WebFlux applications.
The first step in producing a deployable war file is to provide a The first step in producing a deployable war file is to provide a
`SpringBootServletInitializer` subclass and override its `configure` method. Doing so `SpringBootServletInitializer` subclass and override its `configure` method. Doing so
makes use of Spring Framework's Servlet 3.0 support and lets you configure your makes use of Spring Framework's Servlet 3.0 support and lets you configure your

Loading…
Cancel
Save