Announcement Announcement Module
Collapse
No announcement yet.
Spring data REST cannot perform paging Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring data REST cannot perform paging

    Hi, I'm using latest M1 release of Spring data REST.
    Code:
    org.springframework.data:spring-data-rest-webmvc:jar:1.1.0.M1
    , annotations based spring config
    Code:
    @Import(org.springframework.data.rest.webmvc.config.RepositoryRestMvcConfiguration.class)
    Most of the features are working well except paging. The applications is trying to get all the entries from table instead of using paging upon hitting the base URL e.g. http://location:8080/myapp/persons. Here I see all the entries from persons table under content[...], empty links[], missing "next", "previous" "totalCount" "totalPages" etc.

    Explicit paging via query param seems to work well e.g. http://localhost:8080/myapp/persons?page=2&limit=5 returns paged content with pageSize, pageNumber etc
    Any clue what am I missing?

  • #2
    i am facing the same behaviour,
    also links to the previous and next pages are missing
    tried overriding :
    Code:
    @Override@RestResource(exported=false)
    	public List<T> findAll();
    however this does not prevent the full list,
    did you figured this out ?

    Comment

    Working...
    X