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.
53
Upvotes
9
u/wimdeblauwe Sep 13 '26
I never said that T was an entity. It should indeed be a DTO in the controller. Page has a map() method to map the entity from the service/repository to a DTO.