title: Spring Data - PageRequest one-based page index
body: <p>I am trying to configure Pageable and PageRequest for page number starting from 1 instead of 0. Using below code Pageable is configured successfully:</p>
  
  <pre><code>@Configuration 
  @EnableSpringDataWebSupport 
  public class JPAConfiguration { 
  
      @Bean 
      Pageable HandlerMethodArgumentResolverCustomizer pageCustomizer(){ 
          returns -&gt; p.setOneIndexedParameters(true); 
      } 
  
  } 
  </code></pre>
  
  <p>And now if I call endpoint using: </p>
  
  <blockquote>
    <p>/myEndpoint?page=1&amp;size=2</p>
  </blockquote>
  
  <p>I get the records of first page which means 1-based page size is working. However the response has below information related to pagination:</p>
  
  <pre><code>"totalElements": 9, 
  "last": false, 
  "totalPages": 5, 
  "size": 2, 
  "number": 0, 
  "numberOfElements": 2, 
  "first": true, 
  "sort": { 
      "sorted": true, 
      "unsorted": false 
  } 
  </code></pre>
  
  <p>If you notice the 'number' is 0 which means it is still 0-based. How can I configure it to be 1-based?</p>
  
  <p>Thanks in advance.</p>
  
  <p>I am using: <strong>SpringBoot:2.0.0, spring-data-commons: 2.0.5</strong></p>