Skip to content

Commit df22ba3

Browse files
committed
Warn against direct usage of Servlet API in WebFlux apps
Closes gh-28872
1 parent 826776f commit df22ba3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

framework-docs/modules/ROOT/pages/web/webflux/new-framework.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ lets applications use the Servlet API directly if they need to. Spring WebFlux
189189
relies on Servlet non-blocking I/O and uses the Servlet API behind a low-level
190190
adapter. It is not exposed for direct use.
191191

192+
NOTE: It is strongly advised not to map Servlet filters nor directly manipulate the Servlet API in the context of a WebFlux application.
193+
For the reasons listed above, mixing blocking I/O and non-blocking I/O in the same context will cause runtime issues.
194+
192195
For Undertow, Spring WebFlux uses Undertow APIs directly without the Servlet API.
193196

194197

0 commit comments

Comments
 (0)