How to consume Page response using Spring RestTemplate

前端 未结 7 873
感动是毒
感动是毒 2020-12-02 16:42

I\'m using spring data (mongoDb) and I\'ve got my repository:

public interface StoriesRepository extends PagingAndSortingRepository {}
<         


        
相关标签:
7条回答
  • 2020-12-02 17:42

    If you looking at this thread, and if you try this answer https://stackoverflow.com/a/44895867/8268335

    You will meet the 2nd problem:

    Can not construct instance of org.springframework.data.domain.Pageable
    

    Then I find the perfect solution from here: https://stackoverflow.com/a/42002709/8268335

    I create the class RestPageImpl from the answer above and problem solved.

    0 讨论(0)
提交回复
热议问题