Document that ModelMap is not a supported argument type in WebFlux
Prior to this commit, the "Method Arguments" documentation for WebFlux in the reference manual stated that WebFlux controller methods can accept arguments of type Map, Model, or ModelMap to access the model. However, ModelMap is actually not supported and results in exception due to a type mismatch. This commit updates the documentation to reflect this. In addition, this commit updates related Javadoc and tests to avoid mentioning or using ModelMap in WebFlux. Closes gh-33107
This commit is contained in:
@@ -77,7 +77,7 @@ and others) and is equivalent to `required=false`.
|
||||
| For access to a part in a `multipart/form-data` request. Supports reactive types.
|
||||
See xref:web/webflux/controller/ann-methods/multipart-forms.adoc[Multipart Content] and xref:web/webflux/reactive-spring.adoc#webflux-multipart[Multipart Data].
|
||||
|
||||
| `java.util.Map`, `org.springframework.ui.Model`, and `org.springframework.ui.ModelMap`.
|
||||
| `java.util.Map` or `org.springframework.ui.Model`
|
||||
| For access to the model that is used in HTML controllers and is exposed to templates as
|
||||
part of view rendering.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user