title: Spring Data Pageable not supported as RequestParam in Feign Client
body: <p>I have been trying to expose a Feign Client for my rest api. It takes Pageable as input and has PageDefaults defined.</p>
  
  <p><strong>Controller:</strong></p>
  
  <pre><code>@GetMapping(value = "data", produces = MediaType.APPLICATION_JSON_VALUE)
  @ApiOperation(value = "Get Data", nickname = "getData")
  public Page&lt;Data&gt; getData(@PageableDefault(size = 10, page = 0) Pageable page,
              @RequestParam(value = "search", required = false) String search) {
      return service.getData(search, page);
  }
  </code></pre>
  
  <p>And here is my <strong>feign client:</strong></p>
  
  <pre><code>@RequestMapping(method = RequestMethod.GET, value = "data")
  public Page&lt;Data&gt; getData(@RequestParam(name = "pageable", required = false) Pageable page,
              @RequestParam(name = "search", defaultValue = "null", required = false) String search);
  </code></pre>
  
  <p>Now the problem is regardless of whatever page size and page number I send to Feign Client it always applies PageDefaults (0,10).</p>
  
  <p>When I call the rest service directly it works:
  <a href="http://localhost:8080/data?size=30&amp;page=6" rel="nofollow noreferrer">http://localhost:8080/data?size=30&amp;page=6</a></p>
  
  <p>I am using Spring Boot 2.1.4.RELEASE and Spring Cloud Greenwich.SR1. Recently a fix was done to support Pageable (<a href="https://github.com/spring-cloud/spring-cloud-openfeign/issues/26#issuecomment-483689346" rel="nofollow noreferrer">https://github.com/spring-cloud/spring-cloud-openfeign/issues/26#issuecomment-483689346</a>). However I am not sure it the above scenario is not covered or I am missing something.</p>