public class FileSystemResourceLoader
extends org.springframework.core.io.FileSystemResourceLoader
ResourceLoader implementation that resolves plain paths as
DeletableResource file system resources rather than as class path resources
(the latter is DefaultResourceLoader's default strategy).
NOTE: Plain paths will always be interpreted relative to the root specified
during instantiation rather than relative to the current VM working directory (the
latter is FileSystemResourceLoader's default
behavior, even if they start with a slash.
| Constructor and Description |
|---|
FileSystemResourceLoader(String root) |
| Modifier and Type | Method and Description |
|---|---|
String |
getFilesystemRoot()
Deprecated.
|
org.springframework.core.io.Resource |
getResource(String location) |
org.springframework.core.io.FileSystemResource |
getRootResource() |
public FileSystemResourceLoader(String root)
@Deprecated public String getFilesystemRoot()
public org.springframework.core.io.FileSystemResource getRootResource()
public org.springframework.core.io.Resource getResource(String location)
getResource in interface org.springframework.core.io.ResourceLoadergetResource in class org.springframework.core.io.DefaultResourceLoaderCopyright © 2022 Paul Warren. All rights reserved.