Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Show request mappings of MVC beans

See original GitHub issue

Hello Alessandro,

one nice feature to have would be a view that shows the @RequestMapping of recognized beans like this:

I’m only a NetBeans user, don’t have much experience writing my own plugins, but maybe I could help on the Spring site?

Thanks, Michael

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

AlexFalappacommented, Sep 23, 2016

I noticed that if I have:

public class NewController {
    public String page(Model model) {
        return "";

the request mapping view shows no HTTP method. I assumed a default of GET but after looking at the documentation I realized that the default is all methods. I think I will mention it in the wiki when documenting this new functionality.

michael-simonscommented, Sep 23, 2016

Exactly, the method attribute acts as a restriction.

If you at @RequestMapping(method = GET) at controller level and omit it on method level like in your example, then it means only GET there, too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

spring mvc get all request mappings - Stack Overflow
I would like to create a test now which checks every possible url and checks if the return value is 200.
Read more >
Spring @RequestMapping - Baeldung
@RequestMapping allows easy mapping of URL parameters with the @RequestParam annotation. We are now mapping a request to a URI: http://localhost ...
Read more >
17. Web MVC framework - Spring
The Spring Web model-view-controller (MVC) framework is designed around a DispatcherServlet that dispatches requests to handlers, with configurable handler ...
Read more >
Spring MVC - Bean Name Url Handler Mapping Example
The BeanNameUrlHandlerMapping class is the default handler mapping class, which maps the URL request(s) to the name of the beans mentioned in the...
Read more >
Using the Spring @RequestMapping Annotation
In this post, I show you how to use the Spring MVC @RequestMapping annotation to configure how Spring MVC maps web requests to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found