Home > database >  Uploading Files tutorial
Uploading Files tutorial

Time:10-12

I'm learning this tutorial: enter image description here

CodePudding user response:

StorageProperties.java is present here https://github.com/spring-guides/gs-uploading-files/blob/main/complete/src/main/java/com/example/uploadingfiles/storage/StorageProperties.java

@ConfigurationProperties("storage")
public class StorageProperties {

    /**
     * Folder location for storing files
     */
    private String location = "upload-dir";

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

}

I hope this solves your query.

  • Related