DanielD :
I have a page of objects like this:
Page<Video> videos = videoRepository.findAllVideos(new PageRequest(1, 50));
How can I convert that to a list of Video objs without iterating over my page?
sathyendran a :
Page<Video> videos = videoRepository.findAllVideos(new PageRequest(1, 50));
List<Video> videosList = videos.getContent();
You can use the above code to get the list of videos from page
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=426183&siteId=1