Sub URL's for Spring MVC @RequestMapping's
<p>I'm building up some RESTful WebServices via Spring MVC.</p>

<pre><code>@RestController
@RequestMapping("/ws/contact")
@Scope("request")
@SuppressWarnings("SpringJavaAutowiringInspection")
public class ContactsController {

    @RequestMapping(method=RequestMethod.GET)
    @ResponseBody
    public SearchResult search(HttpServletRequest request) throws IOException {
       ...
    }

    @RequestMapping(value="/id", method=RequestMethod.GET)
    @ResponseBody
    public SearchResult getIds(HttpServletRequest request) throws IOException {
        ...
    }
</code></pre>

<p>This is working great for me mapping a GET to <code>/ws/contact</code> to do a search supplied on the parameters.</p>

<p>But now I want to map another GET to <code>/ws/contact/id</code>, that will return just the ids.</p>

<p>At present the first mapping <code>/ws/contact</code> is "winning", which makes total sense. I tried adding <code>value="/"</code> to the first <code>@RequestMapping</code>, but that just stopped everything working. </p>

<p>Is it possible to do more specific "sub" mappings with Spring MVC?  </p>