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
In case a controller does not have a common parent path defined on the class level using a @RequestMapping annotation, but all the embodied request mappings inside the class share the same prefix, we should offer a validation and a code action for this to extract the common parent path into a @RequestMapping annotation at the class level.
On top of this, it might be useful to implement this as an auto completion as well, so that when users type @RequestMapping at the class level, the commonly used parent path is suggested and if applied, automatically removed from the other request mapping annotations.
Activity
martinlippert commentedon Jul 1, 2026
On top of this, it might be useful to implement this as an auto completion as well, so that when users type
@RequestMappingat the class level, the commonly used parent path is suggested and if applied, automatically removed from the other request mapping annotations.GH-1924: extract common mapping path into class-level request mapping…
martinlippert commentedon Aug 12, 2026
Closing this as fixed, validation and quick fix got added. Auto completion - as mentioned in the previous comment - could be done in a separate issue.