Search code examples
springspring-bootspring-mvcintellij-ideaintellij-13

Is there a way to see a map of all @RequestMapping URLs in Intellij IDEA?


Is there a way to see all @RequestMapping annotations as map of all requests/URLs, ideally with quick links to whichever Controller/method handles the URL?

In Spring 2 (before annotations) XML config (SimpleUrlHandlerMapping) could be used as such reference, now with annotated controllers is there any other way besides searching the codebase?


Solution

  • yes we can do the same as we can see that in STS spring explore , coming to intellij Go to Project Structure >> Modules >> select your project and add Spring to your project .

    This will give you a spring tab at the bottom to see all the controllers.