ResourceLoader implementation that resolves plain paths as file system resources rather than as class path resources (the latter is DefaultResourceLoader's default strategy).
NOTE: Plain paths will always be interpreted as relative to the current VM working directory, even if they start with a slash. (This is consistent with the semantics in a Servlet container.) Use an explicit "file:" prefix to enforce an absolute file path. is a full-fledged ApplicationContext implementation that provides the same resource path resolution strategy.
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected Resource |
getResourceByPath(java.lang.String path)Resolve resource paths as file system paths. |
| Methods inherited from class | Name |
|---|---|
class DefaultResourceLoader |
getClassLoader, getDefaultClassLoader, getResource, getResourceByPath, setClassLoader |
Resolve resource paths as file system paths.
Note: Even if a given path starts with a slash, it will get interpreted as relative to the current VM working directory.
path - the path to the resource