title: How to send the Multipart file and json data to spring boot
body: <p>I have the POST request api call to accept the json body request parameters and multipart file from client side(postman or java client).</p>
  
  <p>I want to pass both the json data and multipart file in single request.</p>
  
  <p>I have written the code like below.</p>
  
  <pre><code>@RequestMapping(value = "/sendData", method = RequestMethod.POST, consumes = "multipart/form-data")
  public ResponseEntity&lt;MailResponse&gt; sendMail(@RequestPart MailRequestWrapper request) throws IOException
  </code></pre>
  
  <p>But, i could not accomplish it using postman rest client.</p>
  
  <p>I'm using spring boot on server side. </p>
  
  <p>Could anyone suggest me on this question.</p>
  
  <p>Thanks in advance,</p>