How to convert a List of enity Object to Page Object in Spring Mvc Jpa?
There is a Page
implementation for that:
final Page<Something> page = new PageImpl<>(theListOfSomething);
There is one more Constructor :
Page<Something> page = new PageImpl<>(listOfsomething, pageable, listOfsomething.size());