title: How to get all results in one page using Spring Data Pagination
body: <p>I want to get all the results in single page, I've tried with</p>
  
  <pre><code>Pageable p = new PageRequest(1, Integer.MAX_VALUE);
  return customerRepository.findAll(p);
  </code></pre>
  
  <p>Above is not working, is there any methods to achieve this? Seems like it cannot be achieved from custom query as asked <a href="https://stackoverflow.com/questions/22345081/spring-data-jpa-query-and-pageable">here</a>.</p>