r/SpringBoot • u/Excellent_Trifle_630 • Sep 13 '26
Question Pagination in Springboot
If you're ar working on springboot project in you company/job. How does your team do pagination in your project as they have large datasets. I am currently learning springboot and curious to know how it's done withel large datasets.
55
Upvotes
View all comments
50
u/wimdeblauwe Sep 13 '26
A RestController method can accept a Pageable argument and return a Page<T>. Combine it with a PagingAndSortingRepository of Spring Data JPA.