title: Narrowing problem with Spring MVC annotation-based controller and @RequestMapping
body: <p>Consider this Spring MVC Controller:</p>
  
  <pre><code>@Controller
  @RequestMapping("/test*")
  public class TestController {
  
    @RequestMapping(method = RequestMethod.GET)
    public void doStuff(Model model){
      ...
    }
  
    @RequestMapping(params = "myParam")
    public void doStuff(@RequestParam("myParam") int myParam, Model model){
      ...
    }
  
  }
  </code></pre>
  
  <p>When I put this into my browser: </p>
  
  <pre><code>mySite.com/test.html?myParam=1
  </code></pre>
  
  <p>I expected an AmbiguousHandlerMappingException or something, since both methods seem to match the URL.</p>
  
  <p>But actually the first method got called. Does anybody know why?</p>