Support @ResponseStatus as a merged composed annotation [SPR-13441] #18021
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Sam Brannen opened SPR-13441 and commented
Status Quo
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 theresponseStatus
attribute override in the following custom composed@Post
annotation is currently unsupported even though it is declared syntactically correct. Furthermore, use of theresponseStatus
attribute will fail silently: it will simply be ignored.Deliverables
@ResponseStatus
usingAnnotatedElementUtils.findMergedAnnotation()
instead ofAnnotationUtils.findAnnotation()
.Affects: 4.2 GA
Issue Links:
@CrossOrigin
as a merged composed annotation@Cache
* as merged composed annotationsReferenced from: commits e2bfbdc
The text was updated successfully, but these errors were encountered: