title: Map 2 controller methods to the same endpoint with different query parameters
body: <p>I want to implement a REST API in Java with an "overloaded" endpoint which differs by the query parameters passed up.<br>
  I've tried this code in my controller class:</p>
  
  <pre><code>@Get("/query")
  public MyResponse queryByDate(@QueryValue @Valid @Format("yyyy-MM-dd") Date date) {
      // Code to generate the response
      return retval;
  }
  
  @Get("/query")
  public MyResponse queryByDateAndValue(@QueryValue @Valid @Format("yyyy-MM-dd") Date date, @QueryValue int value) {
      // Code to generate the response
      return retval;
  }
  </code></pre>
  
  <p>This returns the following error:</p>
  
  <pre><code>More than 1 route matched the incoming request. The following routes matched /calendar/years/query: GET - /calendar/years/query, GET - /calendar/years/query
  io.micronaut.web.router.exceptions.DuplicateRouteException: More than 1 route matched the incoming request. The following routes matched /calendar/years/query: GET - /calendar/years/query, GET - /calendar/years/query
  </code></pre>
  
  <p>Note that if I delete one of the methods, the remaining method works as expected.
  How can I map an endpoint, with different query parameters, to 2 different methods in a controller? Is this possible?</p>
  
  <p>Thanks.</p>