You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IMHO, it would be a useful feature, instead of writing custom and similar HandlerMethodArgumentResolver
Some ideas:
add an annotation for method args - @Header
add an annotation for POJO fields - @HeaderParam
add support for validation - @Valid
add support for immutable POJO
Thanks
The text was updated successfully, but these errors were encountered:
Based on the SO question, you don't need a custom resolver. Just register a Converter. All method arguments sourced from String-based request values (e.g. @RequestHeader, @CookieValue, @PathVariable, etc) pass through to type conversion from String to the target type.
Support for such annotations on fields is something different.
Hi, do you have plans to add support for
header
binding withPOJO
?This issue based on stackoverflow question @RequestHeader not binding in POJO but binding only in variable
IMHO, it would be a useful feature, instead of writing custom and similar
HandlerMethodArgumentResolver
Some ideas:
add an annotation for method args -
@Header
add an annotation for
POJO
fields -@HeaderParam
add support for validation -
@Valid
add support for immutable
POJO
Thanks
The text was updated successfully, but these errors were encountered: