title: Does Spring Boot @RequestMapping match requests exactly?
body: <p>I have a Spring Boot API which has endpoints that offer paging. </p>
  
  <pre><code>@RequestMapping(path = "/most-popular", method = GET)
  @Override
  public List&lt;RefinedAlbum&gt; getMostPopularDefault() {
      return albumService.getMostPopular(0, 25);
  }
  
  @RequestMapping(path = "/most-popular?offset={offset}&amp;limit={limit}", method = GET)
  @Override
  public List&lt;RefinedAlbum&gt; getMostPopular(@PathVariable("limit") int limit, @PathVariable("offset") int offset) {
      inputValidation(limit, offset);
      return albumService.getMostPopular(limit, offset);
  }
  </code></pre>
  
  <p>But when I make a request to the service like:</p>
  
  <pre><code>http://localhost:5250/api/v1/albums/most-popular?offset=100&amp;limit=125
  </code></pre>
  
  <p>The first function is called. My understanding was the exact matches should precede. Is that incorrect? </p>