GitHub - allouzi/UploadFile

Spring Boot File Upload

Tutorial: Upload/Download files with Spring Boot REST API

Steps to Setup

1. Clone the repository

git clone https://github.com/allouzi/UploadFile.git

2. Change the connection string and the container in the "application.properties".

azstorage.STORAGE_CONNECTION_STRING= XXX

azstorage.CONTAINER_NAME= XXX

Topics

3. Run the app using maven

cd UploadFile
mvn spring-boot:run

That's it! The application can be accessed at http://localhost:8080.

You may also package the application in the form of a jar and then run the jar file like so -

mvn clean package
java -jar target/uploadfile-0.0.1-SNAPSHOT.jar