Reject ModelMap
argument types in WebFlux
#33109
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Overview
Although
ModelMap
is not officially supported as an argument type for a WebFlux controller method, it still possible for a user to accidentally attempt to useModelMap
instead ofModel
orMap
.If
ModelMap
is used, the user currently encounters an exception similar to the following.The above is a bit cryptic since the error occurs while attempting to invoke the controller method with an instance of
BindingAwareConcurrentModel
which is not compatible withModelMap
.Thus, we should improve diagnostics for the user in such scenarios by rejecting the use of
ModelMap
upfront in theModelMethodArgumentResolver
in WebFlux.Related Issues
ModelMap
is not a supported argument type in WebFlux #33107The text was updated successfully, but these errors were encountered: