[SPR-17296] Support for @RequestHeader as meta annotation Created: 22/Sep/18  Updated: 15/Jan/19

Status: Open
Project: Spring Framework
Component/s: Web
Affects Version/s: None
Fix Version/s: 5.x Backlog

Type: New Feature Priority: Minor
Reporter: Rob Winch Assignee: Juergen Hoeller
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Days since last comment: 1 year, 24 weeks, 4 days ago
Last commented by a User: true
Last updater: Spring Issuemaster


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:


@RequestHeader(name = "user-id")
public @interface CurrentUserId {

Comment by Spring Issuemaster [ 14/Jan/19 ]

The Spring Framework has migrated to GitHub Issues. Please visit spring-projects/spring-framework#21829 for further activity, or to subscribe to receive notifications.

Generated at Sat Jul 04 19:04:30 UTC 2020 using Jira 8.5.4#805004-sha1:0444eab799707f9ad7b248d69f858774aadfd250.