Make storage directory configurable
parent
7df33fd942
commit
c2f56bc23b
|
@ -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
2
config
|
@ -1 +1 @@
|
|||
Subproject commit 5ea92d4042676dde509ed15f5e6f5e9a61b81a01
|
||||
Subproject commit 932fff95a1eb12371809f7d7e2027154b09fdfad
|
Reference in New Issue