Support @RequestHeader
and @RequestParam
as meta-annotations
#28950
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: duplicate
A duplicate of another issue
type: enhancement
A general enhancement
Uh oh!
There was an error while loading. Please reload this page.
Affects: 5.3.18
Within my project, almost all endpoints receive the user-agent header like so:
I would like to reduce this declaration to the following:
I think handler methods support meta annotations (via reading the docs of
org.springframework.core.annotation.SynthesizingMethodParameter
) but the annotations (RequestParam
,RequestHeader
etc) have an annotation target of onlyPARAMETER
so cannot be used as meta annotations.The text was updated successfully, but these errors were encountered: