Pagination and dynamic filters in Spring: Pageable, Page, Slice and JPA Specifications
Paginating with Pageable and @PageableDefault, Page versus Slice, zero- or one-based pages, capping size and rejecting unknown sort fields; filtering products by brand, purpose and price range with Specifications and the JPA metamodel; grouping OR correctly, keeping filters in the URL, and the LIKE, count-query and fetch-join traps. With a Spring Boot 3 lab verified by tests.