title: Consume Post method Rest + SpringBoot
body: <p>I have been searching all morning and i think i'm missing something .<br>
  i have a Spring boot controller with a method to save a client.<br>
  this is the method :</p>
  
  <pre><code>// ajouter un client
  @RequestMapping(value="/AjoutClient/{clientData}", method=RequestMethod.POST)
  public String AjoutClient(@PathVariable String clientData) {
  
      Client c = new Client();
      c.setNomClient(clientData.split(";")[0]);
      c.setPrenomClient(clientData.split(";")[1]);
      c.setAdresseClient(clientData.split(";")[2]);
      c.setTelClient(clientData.split(";")[3]);
      c.setEmailClient(clientData.split(";")[4]);
      c.setCinClient(clientData.split(";")[5]);
  
      client.save(c);
      return "test";
  }
  </code></pre>
  
  <p>i want to consume this method from another application with this method : </p>
  
  <pre><code>@RequestMapping(value="/ajoutClient", method=RequestMethod.POST)
   public void ajout(@RequestParam("nom") String nom,@RequestParam("prenom") String prenom,@RequestParam("adr") String adr,@RequestParam("tel") String tel,@RequestParam("mail") String mail,@RequestParam("cin") String cin) {
  
      String ClientData=nom+";"+prenom+";"+adr+";"+tel+";"+mail+";"+cin;
  
       RestTemplate restTemplate = new RestTemplate();
  
       HttpEntity&lt;String&gt; request = new HttpEntity&lt;&gt;(new String(ClientData));
       ResponseEntity&lt;String&gt; response = restTemplate
         .exchange("http://localhost:9093/AjoutClient/"+ClientData, HttpMethod.POST, request, String.class);
  
       assertThat(response.getStatusCode(), is(HttpStatus.CREATED));
  
    }
  </code></pre>
  
  <p>** explication : i get the values from a form and construct a string with those values, then try to send that string to my clientController.<br>
  PS: i can't send client object, i have to send the values one by one then create the client object in the clientController.<br>
  i'm feeling pretty lost because i can see that something is wrong but i don't know what is it.</p>