Yes, it is possible to send both a request body and multipart file in the Spring Boot controller via Postman. You can use the "form-data" option in Postman to add key-value pairs for the request body, and also add a "file" type key to select the multipart file to upload. In your Spring Boot controller, you can receive the request body using the @RequestBody annotation and the multipart file using the @RequestParam annotation.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2021-08-03 11:00:00 +0000
Seen: 11 times
Last updated: Jan 09 '23