title: How to send POST request by Spring cloud Feign
body: <p>It's my Feign interface</p>
  
  <pre><code>@FeignClient(
          name="mpi",
          url="${mpi.url}",
          configuration = FeignSimpleEncoderConfig.class
  )
  public interface MpiClient {
  
      @RequestMapping(method = RequestMethod.POST)
      public ResponseEntity&lt;String&gt; getPAReq(@QueryMap Map&lt;String, String&gt; queryMap
      );
  }
  </code></pre>
  
  <p>and my custom configuration</p>
  
  <pre><code>public class FeignSimpleEncoderConfig {
      public static final int FIVE_SECONDS = 5000;
  
      @Bean
      public Logger.Level feignLogger() {
          return Logger.Level.FULL;
      }
  
      @Bean
      public Request.Options options() {
          return new Request.Options(FIVE_SECONDS, FIVE_SECONDS);
      }
  
      @Bean 
      @Scope("prototype")
      public Feign.Builder feignBuilder() {
          return Feign.builder()
                  .encoder(new FormEncoder());
      }
  }
  </code></pre>
  
  <p>If I send request like this I see that my request send Content-Type: application/json;charset=UTF-8.
  But if I set content type </p>
  
  <pre><code>consumes = "application/x-www-form-urlencoded"
  </code></pre>
  
  <p>I've this error message</p>
  
  <pre><code>feign.codec.EncodeException: Could not write request: no suitable HttpMessageConverter found for request type [java.util.HashMap] and content type [application/x-www-form-urlencoded]
      at org.springframework.cloud.netflix.feign.support.SpringEncoder.encode(SpringEncoder.java:108) ~[spring-cloud-netflix-core-1.1.7.RELEASE.jar:1.1.7.RELEASE]
  </code></pre>
  
  <p>How to send POST request, I think I should make something more with Encoder.
  Thanks for your help.</p>