The more correct way is to use Pageable.unpaged()
Pageable wholePage = Pageable.unpaged();
return customerRepository.findAll(wholePage);
The more correct way is to use Pageable.unpaged()
Pageable wholePage = Pageable.unpaged();
return customerRepository.findAll(wholePage);