Search code examples
springspring-mvcspring-bootspring-data-jpathymeleaf

Pagination using Spring JPA PagingAndSortingRepository and thymeleaf


I'm trying to create a data table with all selected data, paging (previous, next) and sorting then present in in a thymeleaf template. I'm trying to use the PagingAndSortingRepository of Spring. Can someone point me to the right direction? I'm new to Spring.


Solution

  • I have just finished writing this tutorial, maybe it will help you.

    Spring Data JPA Pagination - W3Stacks