Description
Caused by #32065
Upgrading Spring version I Just stumbled upon an issue caused from removing the support to have both type of annotations in a single element.
Allowing both annotations provides more flexibility on simpler designs since the API can be defined in a single interface and ensure both controller and clients work by implementing the same root API. It also simplifies quite much when there is inheritance and the need to use @RequestMapping
unique features (like multiple URLs or the params
condition).
As of this change, where I have a generic interface defining a common API, which is inherited by a domain-based API and finally implemented by a controller and its respective client, I would need to separate from the root API (most generic one) since there are methods that have unique requirements on the @RequestMapping
declarations (including Get
, Post
and the other method variants) and that can't be set with @HttpExchange
(and therefore can't opt to use that one also for Controllers).
This workaround is less natural and becomes messy very fast.
Would it be possible to review this decision and, maybe, revert it?