st-tu-dresden / salespoint

A framework to develop point of sales applications, powered by Java and Spring Boot
https://tu-dresden.de/ing/informatik/smt/st/forschung/forschungsprojekte/salespoint
Apache License 2.0
178 stars 49 forks source link

Allow `Storage` module to be initialized from a classpath resource #427

Open odrotbohm opened 1 year ago

odrotbohm commented 1 year ago

To allow an application to serve default images the same way that user uploaded ones are served, it would be nice if an application property could be defined to lookup resources from a location resolvable via a ResourceLoader to be unconditionally added to the storage. E.g. salespint.storage.init-from=classpath:/images/*.