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
It seems that Navigation (cmd+6) cannot detect @RequestMapping-annotated methods when the URL is defined as a constant instead of a literal string.
For example:
public class MyPaths {
public static final String RESOURCE_PATH = "/somepath/resource";
}
@Controller
public class MyController {
@RequestMapping(MyPaths.RESOURCE_PATH)
public String method() {
...
}
}
In STS4, if I press Ctrl+6 (I'm using Eclipse-based STS4 on Linux) and start typing something like "@/some", the results list does not include the mapping for "/somepath/resource".
It would be nice if STS4 implemented such detection.
The text was updated successfully, but these errors were encountered:
(comment in Pivotal Tracker added by Martin Lippert:)
Tested this again, works in general, but not for constants defined in the same source file as the request mapping. Will file a separate issue for that.
It seems that Navigation (cmd+6) cannot detect @RequestMapping-annotated methods when the URL is defined as a constant instead of a literal string.
For example:
In STS4, if I press Ctrl+6 (I'm using Eclipse-based STS4 on Linux) and start typing something like "@/some", the results list does not include the mapping for "/somepath/resource".
It would be nice if STS4 implemented such detection.
The text was updated successfully, but these errors were encountered: