I'm really trying to convert List<User> usersto Page<User>in the spring data mongo? Note Pageis the API from org.springframework.data.domain.Page;
I use Paginationfrom Spring Data Mongo, so I need to send Page<User>, not List<User>.
How can we get pages from a list if I don't want to use the repository method Page<>?
Please help me.
user5268786
source
share