Spring Mvc Annotations in argument of a method (like @Path) annotated with @RequestMapping are not supported when you create a @RestController via an Interface [SPR-14805] #19371
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: duplicate
A duplicate of another issue
Alexandre Navarro opened SPR-14805 and commented
Spring Mvc Annotations in argument of a method (like
@Path
) annotated with@RequestMapping
are not supported when you create a@RestController
implementation via an Interface annotatedExample to illustrate the problem :
Interface
Implementation
You have to change the implementation to
to have a work around. The different annotation (like
@RequestMapping
) on class / method are well recognized.I really want to use all the annotations in the interface in order to use the same interface between the server (implemented via
@RestController
) and the client (implemented feign via spring-cloud). Very useful when you develop many microservices via spring-boot and spring-cloud (eureka).Don't hesitate to comment if it is not clear.
Affects: 4.3.3
Issue Links:
The text was updated successfully, but these errors were encountered: