How to consume Page response using Spring RestTemplate

前端 未结 7 900
感动是毒
感动是毒 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:41

    You can probably use exchange method of restTemplate and get the body from it..

    Check the following answer https://stackoverflow.com/a/31947188/3800576. This might help you

提交回复
热议问题