Skip to content

Commit

Permalink
Warn against direct usage of Servlet API in WebFlux apps
Browse files Browse the repository at this point in the history
Closes gh-28872
  • Loading branch information
bclozel committed Jul 6, 2023
1 parent 826776f commit df22ba3
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -189,6 +189,9 @@ lets applications use the Servlet API directly if they need to. Spring WebFlux
relies on Servlet non-blocking I/O and uses the Servlet API behind a low-level
adapter. It is not exposed for direct use.

NOTE: It is strongly advised not to map Servlet filters nor directly manipulate the Servlet API in the context of a WebFlux application.
For the reasons listed above, mixing blocking I/O and non-blocking I/O in the same context will cause runtime issues.

For Undertow, Spring WebFlux uses Undertow APIs directly without the Servlet API.


Expand Down

0 comments on commit df22ba3

Please sign in to comment.