Spring Boot, Sorting, Searching, Filtering, Pagination.
pass pageNo = 0 and pageSize = 3, then it will return total 2 pages, 3 projects per page. Note here we are not passing sortBy and direction, but we have implemented the logic if sortyBy and direction is NULL or blank, set sortBy = “id” and direction should be descending by default. Just pass pageNo