title: How to use @RequestBody and @RequestParam together
body: <p>I'm trying to use both <code>@RequestBody</code> and <code>@RequestParam</code> to send JSON and multiple files through Postman but it's not working. Is it possible to use both annotations in an API? </p>
  
  <pre><code>@RequestMapping(value = "/save/product/test", method = RequestMethod.POST)
  public ResponseEntity&lt;?&gt; save(@Valid @RequestBody ProductVo productVo, @RequestParam("files") @NotNull @NotBlank MultipartFile[] uploadfiles) {
  
      System.out.println("body " + productVo.toString());
      for (MultipartFile file :  uploadfiles) {
          System.out.println(file.getOriginalFilename());
          System.out.println(file.getContentType());
          System.out.println(file.getName());
          System.out.println(file.getSize());
  
      }
      return new ResponseEntity&lt;APIResponse&gt;(this.apiResponse, HttpStatus.NO_CONTENT);
  }
  </code></pre>