我有一个List
的实体。
我如何将其转换为Page
使用 Spring MVC 4 和 Spring Data JPA 的对象?
有一个Page执行 http://docs.spring.io/spring-data/commons/docs/current/api/org/springframework/data/domain/PageImpl.html为了那个原因:
final Page<Something> page = new PageImpl<>(theListOfSomething);
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)