title: Convert List to Page in spring data mongo?
body: <p>I am really struggling to convert <code>List&lt;User&gt; users</code> to <code>Page&lt;User&gt;</code> in spring data mongo? Note <code>Page</code> is an API from <code>org.springframework.data.domain.Page</code>; </p>
  
  <p>I am using <code>Pagination</code> of Spring Data Mongo, so I need to sent <code>Page&lt;User&gt;</code> and not the <code>List&lt;User&gt;</code> .</p>
  
  <p>How we can get Pages from List if I don't want to use <code>Page&lt;&gt;</code> repository method?</p>
  
  <p>Please help me.</p>