You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although Spring MVC supports @RequestMapping as a merged annotation, the same is not true for @ResponseStatus. @ResponseStatus is in fact supported as a meta-annotation, just not as a merged annotation. This means that the responseStatus attribute override in the following custom composed @Post annotation is currently unsupported even though it is declared syntactically correct. Furthermore, use of the responseStatus attribute will fail silently: it will simply be ignored.
Sam Brannen opened SPR-13441 and commented
Status Quo
Although Spring MVC supports
@RequestMappingas a merged annotation, the same is not true for@ResponseStatus.@ResponseStatusis in fact supported as a meta-annotation, just not as a merged annotation. This means that theresponseStatusattribute override in the following custom composed@Postannotation is currently unsupported even though it is declared syntactically correct. Furthermore, use of theresponseStatusattribute will fail silently: it will simply be ignored.Deliverables
@ResponseStatususingAnnotatedElementUtils.findMergedAnnotation()instead ofAnnotationUtils.findAnnotation().Affects: 4.2 GA
Issue Links:
@CrossOriginas a merged composed annotation@Cache* as merged composed annotationsReferenced from: commits e2bfbdc