Does Spring Boot RequestMapping match requests exactly? : I have a Spring Boot Api which has endpoints which offers paging. 

    
    @RequestMapping(path = "/most-popular", method = GET)
    @Override
    public List<RefinedAlbum> getMostPopularDefault() {
        return albumService.getMostPopular(0, 25);
    }

    @RequestMapping(path = "/most-popular?offset={offset}&limit={limit}", method = GET)
    @Override
    public List<RefinedAlbum> getMostPopular(@PathVariable("limit") int limit, @PathVariable("offset") int offset) {
        inputValidation(limit, offset);
        return albumService.getMostPopular(limit, offset);
    }

But when i make a request to the service like:

 http://localhost:5250/api/v1/albums/most-popular?offset=100&limit=125

The first function is called, my understanding was the exact matches should precede.Is that incorrect? 