Make storage directory configurable

master
esensar 2018-01-17 22:21:25 +01:00
parent 7df33fd942
commit c2f56bc23b
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,6 @@
package ba.steleks.storage;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties("storage")
@ -8,7 +9,8 @@ public class StorageProperties {
/**
* Folder location for storing files
*/
private String location = "/Users/admin";
@Value("{default.storage.directory}")
private String location;
public String getLocation() {
return location;

2
config

@ -1 +1 @@
Subproject commit 5ea92d4042676dde509ed15f5e6f5e9a61b81a01
Subproject commit 932fff95a1eb12371809f7d7e2027154b09fdfad