title: Spring Data Rest - Configure pagination
body: <p>Using Spring Data REST with JPA in version 2.1.0.</p>
  
  <p>How can I configure the pagination in order to have the page argument starting at index 1 instead of 0 ?</p>
  
  <p>I have tried setting a  custom <code>HateoasPageableHandlerMethodArgumentResolver</code> with an <code>mvc:argument-resolvers</code>, but that doesn't work:</p>
  
  <pre><code>&lt;mvc:annotation-driven&gt;
    &lt;mvc:argument-resolvers&gt;
        &lt;bean class="org.springframework.data.web.HateoasPageableHandlerMethodArgumentResolver"&gt;
            &lt;property name="oneIndexedParameters" value="true"/&gt;
        &lt;/bean&gt;
    &lt;/mvc:argument-resolvers&gt;
  &lt;/mvc:annotation-driven&gt;
  </code></pre>
  
  <p>Note that this behaviour is perfectly coherent with the documentation for <code>mvc:argument-resolver</code> that says: </p>
  
  <blockquote>
    <p>Using this option <strong>does not override the built-in support</strong> for
    resolving handler method arguments. To customize the built-in support
    for argument resolution configure RequestMappingHandlerAdapter
    directly.</p>
  </blockquote>
  
  <p>But how can I achieve this ? If possible, in a clean and elegant way ?</p>