类 FileSystemResourceLoader

java.lang.Object
cn.taketoday.core.io.DefaultResourceLoader
cn.taketoday.core.io.FileSystemResourceLoader
所有已实现的接口:
ResourceLoader

public class FileSystemResourceLoader extends DefaultResourceLoader
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.

从以下版本开始:
4.0 2022/2/20 16:39
作者:
Juergen Hoeller, Harry Yang
另请参阅:
  • 构造器详细资料

    • FileSystemResourceLoader

      public FileSystemResourceLoader()
  • 方法详细资料

    • getResourceByPath

      protected Resource getResourceByPath(String path)
      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.

      覆盖:
      getResourceByPath 在类中 DefaultResourceLoader
      参数:
      path - the path to the resource
      返回:
      the corresponding Resource handle
      另请参阅:
      • FileSystemResource
      • cn.taketoday.web.context.support.ServletContextResourceLoader#getResourceByPath