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
{{ message }}
Repository navigation
Web Config Path incorrectly annotated in Eclipse #1891
Describe the bug
When a PathPrefix is selectively configured, the tools web config annotation is annotated for all controller classes in Eclipse editors.
Tested with Spring Tool Suite 5.1.1.RELEASE.
To Reproduce
Configure a selective PathPrefix (using Predicates) in a WebMvcConfigurer @configuration class
Construct a non-matching controller and open it in a code editor.
Good find, the current implementation indeed does not take those predicates into account. I am not sure how far we could / should go here with regards to static code analysis to identify all those cases, so give us a little while to think about this case.
Activity
martinlippert commentedon May 16, 2026
Good find, the current implementation indeed does not take those predicates into account. I am not sure how far we could / should go here with regards to static code analysis to identify all those cases, so give us a little while to think about this case.
GH-1891: take predicates into account when parsing path matching from…
martinlippert commentedon May 18, 2026
Fixed, will ship as part of the
5.2.0release. Thanks again for filing the issue and providing the sample code, very much appreciated.