How To Add Pagination To A REST Controller With Spring Boot
Intro
If you are exposing collection resources via a RESTful API, chances are you will need some sort of pagination. And along with that a means of sorting the output. In this tutorial, we will use the paging and sorting capabilities for Spring Data and expose them all the way up through our REST controller.
🍿 Get the code from GitHub