PageableExecutionUtils.getPage()
·
Programming
PageableExecutionUtils (Spring Data Core 2.5.4 API) docs.spring.io PageableExecutionUtils는 Spring Data 모듈에 있는 추상 클래스다. 이 클래스에는 getPage()라는 메서드만이 있고, 웹 서비스에서 빈번히 제공해야 하는 Paging 기능을 제공한다. public static Page getPage(List content, Pageable pageable, LongSupplier totalSupplier) 메서드를 보면 3개의 인자를 받는다. content는 실제 page에 담길 데이터를 뜻한다. pageable은 paging 관련된 정보를 닮고 있는 Pageable 객체를 의미한다. totalSupplier는 내가 호출하는..