Customizable naming support for setter/field for data binding from request headers #34062
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: waiting-for-triage
An issue we've not yet triaged or decided on
Hi,
Data binding for request headers works from spring web 6.2.0 on. But setter method naming (so relatively field name) must match with request header name. This could lead to a bug easily if anyone changes the field name.
Could you support annotations on field/setter?
Request
Actual
If we change the name to a different one than
a
, binding is not done because field name and header name must match.Class binding is supported.
But record is not supported yet.
Desired
The text was updated successfully, but these errors were encountered: