title: Using params in GetMapping in Spring results in ambiguous handler method for multiple parameters
body: <p>I have the following REST endpoints in Spring boot</p>
  <pre><code>@GetMapping(value = &quot;students&quot;, params = {&quot;name&quot;})
  public ResponseEntity&lt;?&gt; getByName(@RequestParam final String name) {
      return new ResponseEntity&lt;&gt;(true, HttpStatus.OK);
  }
  
  @GetMapping(value = &quot;students&quot;, params = {&quot;tag&quot;})
  public ResponseEntity&lt;?&gt; getByTag(@RequestParam final String tag) {
      return new ResponseEntity&lt;&gt;(true, HttpStatus.OK);
  }
  </code></pre>
  <p>The above handlers work fine for the following requests:</p>
  <p><code>localhost:8080/test/students?name=&quot;Aron&quot;</code></p>
  <p><code>localhost:8080/test/students?tag=&quot;player&quot;</code></p>
  <p>However, whenever I try the following:</p>
  <p><code>localhost:8060/test/students?name=&quot;Aron&quot;&amp;tag=&quot;player&quot;</code></p>
  <p>it throws <code>java.lang.IllegalStateException: Ambiguous handler methods mapped</code> and responds with an <code>HTTP 500</code></p>
  <p>How can I change this behavior? I want my app to respond only when I get either a <code>tag</code> query parameter or a <code>name</code> query parameter.
  For anything else, I want it to ignore <strong>even if it's a combination</strong> of two parameters.</p>
  <p>Why is it throwing the ambiguous error here and how can we handle that?</p>