0

my boot is 2.0.5 I have tried include

compile('org.springframework.boot:spring-boot-starter-hateoas')

and feign code:

@GetMapping
PagedResources<Subject> findAll();

and replace PagedResources to Resources ,don't work.

and I also want to know the client controller how set the page param. can elegance to pass the controller param to feign then to the data-rest provider.

Michael Petch
  • 46,082
  • 8
  • 107
  • 198
WeiXiao
  • 13
  • 3

1 Answers1

0

Spring Data elements such as Pageable are not supported by Spring Cloud OpenFeign. See Support Spring Data Pageable in Feign Client.

Kevin Davis
  • 1,193
  • 8
  • 14