title: Spring service return content empty when using feign client
body: <p>Created an ui application to test my services. UI has relation with FooServiceUI. FooServiceUI sending request to BarServiceAccessor ( has implementation as interface at fooserviceui) with using feign client. But feign client returns response like this;</p>
  
  <pre><code>{"datas": [PagedResource { content: [], metadata: Metadata { number: 0, total pages: 1, total elements: 3, size: 200 }, links: [] }]}
  </code></pre>
  
  <p>When i sending request directly to BarService, i can see all of these datas.</p>
  
  <p>FooService getAll method;</p>
  
  <pre><code>@RequestMapping(method = RequestMethod.GET, path = "/api/datas/")
  public ResponseEntity&lt;String&gt; getAllDatas()
  {
      PagedResources&lt;DataResource&gt; responseEntity = null;
  
      try
      {
          responseEntity = dataManagementAccessor.getAll(0, 200);
      }
      catch (Exception e)
      {
          LOG.error("Exception " + e.toString());
      }
      return ResponseEntity.ok()
              .header(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE)
              .body("{\"datas\": [" + responseEntity + "]}");
  }
  </code></pre>
  
  <p>Accessor;</p>
  
  <pre><code>@FeignClient("https://datamanagement")
  public interface DataManagementAccessor{
  @RequestMapping(value = "/api/datas/", method = GET)
      PagedResources&lt;DataResource&gt; getAll(@RequestParam("page") final Integer page,
          @RequestParam("size") final Integer size);
  }
  </code></pre>
  
  <p>BarService Code looks like;</p>
  
  <pre><code>@RequestMapping(method = GET)
  @ResponseStatus(OK)
  @ApiOperation(value = "Get all datas")
  @ApiResponses(value = {@ApiResponse(code = SC_OK, message = "OK", response = DataPageResponse.class),
          @ApiResponse(code = SC_BAD_REQUEST, message = BAD_REQUEST_MESSAGE, response = String.class),
          @ApiResponse(code = SC_UNAUTHORIZED, message = UNAUTHORIZED_MESSAGE, response = String.class),
          @ApiResponse(code = SC_FORBIDDEN, message = FORBIDDEN_MESSAGE, response = String.class),
          @ApiResponse(code = SC_NOT_FOUND, message = NOT_FOUND_MESSAGE, response = String.class)})
      public PagedResources&lt;Resource&lt;DataResource&gt;&gt; getAll(@PageableDefault(sort = {"name"}) final Pageable pageable,
          final PagedResourcesAssembler&lt;DataResource&gt; pagedAssembler)
  {
      final Page&lt;DataData&gt; allDatas = dataService.getAllDatas(pageable);
  
      final Page&lt;DataResource&gt; pagedResources = allDatas.map(
              d-&gt; conversionService.convert(d, DataResource.class));
      pagedResources.forEach(resource -&gt; controllerLinkHandler.addDataResourceLink(resource));
      return pagedAssembler.toResource(pagedResources);
  }
  </code></pre>
  
  <p>I already tried to add spring jpa to client service's gradle and also tried to change mapping according to use stream api collections but still doesnt work.</p>
  
  <p>Maybe something not working correctly when serializing with _embedded lines in response?</p>