Hi I am trying to override the default param name fo page size in Spring JPA to match that of the Kendo UI grid which needs to use
http://localhost:8080/retailers/all?page=1&pageSize=5
The JPA is producing
http://localhost:8080/retailers/all?page=1&size=5
I have tried adding
spring.data.rest.page-param-name=page spring.data.rest.limitParamName=pageSize to the application properties, but it doesn't seem to make any difference to the project.
My controller looks like this
@RequestMapping(method = RequestMethod.GET, value = "retailers/all") public ResponseEntity<Page<RetailerEntity>> retailers(Pageable pageable){ Page<RetailerEntity> retailers = retailerService.getAllRetailers(pageable); return new ResponseEntity<>(retailers, HttpStatus.OK); } and the repository is using the out of the box implementation
public interface RetailerRepository extends PagingAndSortingRepository<RetailerEntity, Integer> { } Any help is appreciated.