Add binding support to functional servlet and reactive stack #25943
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
When using regular
@Controller
for both the Servlet as well as the Reactive stack there is support for data binding using@ModelAttribute
and there is support for deserializing a request body with@RequestBody
.When using the functional approach in either the Servlet or Reactive stack deserializing is supported through the
body
methods of the respectiveServerRequest
interface/implementation. There is no direct support for data-binding. It currently requires, some work, to do data-binding in a method.Although this will work it requires more knowledge of the internal of data binding then one should need.
It would be nice if there would be a supporting
bind
method(s) to support binding to a type likeWhich would reduce the code to something like this
This could use the already available
WebDataBinder
implementations to do the binding (at least the reactive stack has a specialDataBinder
the functional servlet one needs to be created).The text was updated successfully, but these errors were encountered: