How To Add Pagination To A REST Controller With Spring Boot

preview_player
Показать описание
If you expose collection resources via a RESTful API, you will probably need some pagination. And along with that, a means of sorting the output. In this tutorial, we will use the paging and sorting capabilities offered by Spring Data and expose them all the way up through our REST controller.

⛩️ *Navigation*
00:00 - Intro
00:43 - Let's Code
01:41 - Create Sample Data
01:56 - Create the CRUD Repository
03:12 - Create the REST Controller
05:10 - Add Paging and Sorting to the Repository
06:19 - Programmatically Build a Page Request
07:36 - Build a Page Request Based on Query Parameters
08:58 - Configure Page Defaults

🍃 *Code & Resources*

🙌 *Get in Touch*

🎙 *Gear & Links*

_I may earn a small commission for purchases made through the links above at no additional cost to you._

🎶 *Music*

🍿 *Subscribe*
Want to see more tech tutorials? Subscribe now!
Рекомендации по теме
Комментарии
Автор

Amazing Video Alex. Thanks for showing this.

nirbhaysingh