title: How to configure Spring boot pagination starting from page 1, not 0
body: <p>boot(1.4.0) "Pageable" for pagination.It works fine without any issue.But by default the page value starts from "0" but in the front-end the page value starts from "1". So is there any standard approach to increment value instead of manually increment the page number inside the code?</p>
  
  <pre><code>public Page&lt;Device&gt; find(DeviceFindCommand deviceFindCommand, Pageable pageable){
  //page = 0 //Actual is 0, Expected increment by 1. 
  }
  </code></pre>
  
  <p>Any help should be appreciable.</p>
  
  <p>After implementing <strong>Alan</strong> answers having the following issues,</p>
  
  <p>1) Still i am able to access zero page which returns the first page(I don't know this is issue or not but i want to get a better clarity).</p>
  
  <p><a href="http://localhost:8180/api/v1/books/?page=3&amp;size=2" rel="noreferrer">http://localhost:8180/api/v1/books/?page=3&amp;size=2</a> </p>
  
  <p><strong>Response</strong></p>
  
  <pre><code>{
      "content": [
  {
    "id": "57da9eadbee83fb037a66029",
    .
    .
    .
  }{
  .
  .
  .
  }
  ],
      "last": false,
      "totalElements": 5,
      "totalPages": 3,
      "size": 2,
      "number": 2, //strange always getting 1 less than page number.
      "sort": null,
      "first": true,
      "numberOfElements": 2
  }
  </code></pre>
  
  <p>2) <strong>"number": 2,</strong> in the response always getting one less than the page number.It should return the current page index.</p>