Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-17296

Support for @RequestHeader as meta annotation

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 5.x Backlog
    • Component/s: Web
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      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 {
      }
      

        Attachments

          Activity

            People

            • Assignee:
              juergen.hoeller Juergen Hoeller
              Reporter:
              rwinch Rob Winch
              Last updater:
              Spring Issuemaster
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Days since last comment:
                46 weeks, 5 days ago