title: error : The server refused this request because the request entity is in a format not supported by the requested resource for the requested method
body: <p>I am making a simple API using Spring. and i am getting this error while uploading and mapping file. </p>
  
  <p><strong>The server refused this request because the request entity is in a format not supported by the requested resource for the requested method.</strong></p>
  
  <p>this is my Controller -> </p>
  
  <pre><code>@RequestMapping(value = "/Hi", method = RequestMethod.POST, produces = { "application/json" })
  @ResponseBody
  public BasicResponse UploadData(@RequestBody CropImageData cropImageData, HttpServletRequest request) {
      BasicResponse basicResponse = new BasicResponse();
  
      System.out.println(cropImageData.getCropId());
  
      return basicResponse;
  }
  </code></pre>
  
  <p>My cropImageData model class -> </p>
  
  <pre><code>public class CropImageData {
      @JsonProperty("cropImages")
      private MultipartFile[] cropImages;
  
      @JsonProperty("cropId")
      private String cropId;
  
      public MultipartFile[] getCropImages() {
          return cropImages;
      }
  
      public void setCropImages(MultipartFile[] cropImages) {
          this.cropImages = cropImages;
      }
  
      public String getCropId() {
          return cropId;
      }
  
      public void setCropId(String cropId) {
          this.cropId = cropId;
      }   
  }
  </code></pre>
  
  <p>this is how i am sending request via POSTMAN.</p>
  
  <p><a href="https://i.stack.imgur.com/IsBla.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IsBla.png" alt="POSTMAN REQUEST"></a></p>