Spring MVC get method URL
<p>I have controller's methods annotated by my custom annotation. When I select them I receive list of methods and I want to get URLs for each of those methods.</p>

<p>For example:</p>

<pre><code>@RequestMapping("/test")
@Controller
public class TestController {

    @RequestMapping(method = RequestMethod.GET)
    public String methodOne(){}

    @RequestMapping(value = "/2", method = RequestMethod.GET)
    public String methodTwi(){}

}
</code></pre>

<p>And I want to recieve:</p>

<p>for methodOne - /test</p>

<p>for methodTwo - /test/2</p>