title: How to bind 2 GET methods in Spring MVC and distinguish using @RequestMapping?
body: <p>I have 2 different method, both have same url, but different set of incoming params, can I properly map them using @RequestMapping?</p>
  
  <pre><code>@RequestMapping(value = "/someurl", method = RequestMethod.GET)
  public ModelAndView methodA (
      @RequestParam(value = "param1", required = false) String param1,
      @RequestParam(value = "param2", required = false) String param2) {
  
      return null;
  }
  
  @RequestMapping(value = "/someurl", method = RequestMethod.GET)
  public ModelAndView methodB (
      @RequestParam(value = "array", required = false) String[] array) {
  
      return null;
  }
  </code></pre>