title: How to use custom java object as request param in Rest client?
body: <p>I have Rest API and feign client from different service to invoke it. My client method is as follows</p>
  <pre><code>@GetMapping(&quot;/{employerId}/data&quot;)
  List&lt;Data&gt; searchData(final @PathVariable(&quot;employerId&quot;) String employerId,
  final @RequestParam(required = false) DataQueryVO dataQuery);
  </code></pre>
  <p>My API as follows. I can invoke this API with postman to get correct data, but in java it's always get fields inside <code>DataQueryVO</code> null even-though i set the fileds.</p>
  <pre><code>@GetMapping(&quot;/{employerId}/data&quot;)
  public @ResponseBody List&lt;Data&gt; searchData(@PathVariable String employerId,
  final DataQueryVO dataQuery)
  </code></pre>
  <p>My requirement is to have custom java object as request param in REST api and invoke it from feign client. How can i do that ?</p>