#JavaInspires #springboot #restapis #codinginjava
In this video, we will see how to upload a file using Spring Boot REST api.
We will print the content of the file in the console.
here, we are using
Java 17
Spring Boot 3
IntelliJ IDEA CE
Postman Rest client
If a request expect a file and when you miss the same in request we get this exception.
org.springframework.web.multipart.MultipartException: Current request is not a multipart request