Regarding the architecture of Spring, where is it correct to store images uploaded through a form? Images are photos of goods and, accordingly, they need to have access. How to specify the storage location?
If you specify so String path = this.getClass (). GetClassLoader (). GetResource (""). GetPath (); then the path will be in target, which means the folder will be deleted if you run maven clean.
Or you need to specify C: \ ... directly, but how then to be when transferring from a local server to a remote one.