Skip to content

Support @RequestParam, @RequestHeader, etc. as meta-annotations [SPR-17296] #21829

Open
@spring-projects-issues

Description

@spring-projects-issues

Rob Winch opened SPR-17296 and commented

It would be nice if @RequestHeader could be used for a meta-annotation. This would make it easier if a header was being used consistently throughout the entire application. For example, a user might do something like this:

@Retention(RetentionPolicy.RUNTIME)
@RequestHeader(name = "user-id")
public @interface CurrentUserId {
}

No further details from SPR-17296

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions