title: Spring Cloud OpenFeign Failed to Create Dynamic Query Parameters
body: <p>Spring cloud openFeign can't create dynamic query parameters. It throws below exception because SpringMvcContract tries to find the RequestParam value attribute which doesn't exist.</p>
  
  <pre><code>java.lang.IllegalStateException: RequestParam.value() was empty on parameter 0
  
  
  @RequestMapping(method = RequestMethod.GET, value = "/orders")
  Pageable&lt;Order&gt; searchOrder2(@RequestParam CustomObject customObject);
  </code></pre>
  
  <p>I tried using <code>@QueryMap</code> instead of <code>@RequestParam</code> but <code>@QueryMap</code> does not generate query parameters. </p>
  
  <p>Btw <code>@RequestParam Map&lt;String, Object&gt; params</code> method parameter works fine to generate a dynamic query parameter.</p>
  
  <p>But I want to use a custom object in which the feign client can generate dynamic query parameters from the object's attributes.</p>