To enable Pageable options, Spring MVC uses a component called HandlerMethodArgumentResolver (link here ). In particular, for the Pageable parameter, HandlerMethodArgumentResolver org.springframework.data.web.PageableHandlerMethodArgumentResolver used as the parameter, this can be registered using the Java configuration by simply adding the @EnableSpringDataWebSupport annotation.
Additional options are available here: http://docs.spring.io/spring-data/data-commons/docs/current/reference/html/#core.web
source share