Class PagedModel<T>

java.lang.Object
org.springframework.data.web.PagedModel<T>

public class PagedModel<T> extends Object
DTO to build stable JSON representations of a Spring Data Page. It can either be selectively used in controller methods by calling new PagedModel<>(page) or generally activated as representation model for PageImpl instances by setting EnableSpringDataWebSupport's pageSerializationMode to EnableSpringDataWebSupport.PageSerializationMode.VIA_DTO.
Since:
3.3
Author:
Oliver Drotbohm, Greg Turnquist