-
Notifications
You must be signed in to change notification settings - Fork 38.5k
Support @RequestParam, @RequestHeader, etc. as meta-annotations [SPR-17296] #21829
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Please consider also doing this for @Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
@RequestParam(name = "page", required = false) // currently "not applicable to annotation type"
public @interface PageNumber {
} |
Currently slated for 5.3. We will need to assess whether such changes need to be applied to additional controller method argument annotations as well. It may be sufficient to switch from |
I take that back. In order to support these annotations as meta-annotations, we would have to allow them to be declared on annotations (i.e., |
It would be great if |
Team Decision: we plan to support the following parameter annotations as meta-annotations in Spring Framework 6.0.
Before releasing this feature, we should first assess whether there is any significant performance degradation due to the switch from simple synthesized annotations (supporting only |
Related Issues |
@RequestParam
, @RequestHeader
, etc. as meta-annotations [SPR-17296]
@RequestParam
, @RequestHeader
, etc. as meta-annotations [SPR-17296]
Uh oh!
There was an error while loading. Please reload this page.
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:No further details from SPR-17296
The text was updated successfully, but these errors were encountered: