Supports annotating parameter annotations like @PathVariable on interface method [SPR-16110] #20658
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: duplicate
A duplicate of another issue
type: enhancement
A general enhancement
Yanming Zhou opened SPR-16110 and commented
My motivation:
I need annotating
@PathVariable
and other parameter annotations in interface to create client proxy.My proposal:
Improve org.springframework.core.MethodParameter to find annotation like AnnotatedElementUtils.findMergedAnnotation() which used by method level annotation like
@RequestMapping
. If it has side effects, improve RequestResponseBodyMethodProcessor and AbstractNamedValueMethodArgumentResolver directly.My workaround:
Duplicate Parameter annotations on concrete controller method.
Issue Links:
@RequestBody
annotation in interface is ignoredThe text was updated successfully, but these errors were encountered: