接口 ApplicationResourceLoader.FilePathResolver

封闭类:
ApplicationResourceLoader

public static interface ApplicationResourceLoader.FilePathResolver
Strategy interface registered in spring.factories and used by ApplicationResourceLoader to determine the file path of loaded resource when it can also be represented as a FileSystemResource.
从以下版本开始:
3.4.5
作者:
Phillip Webb
  • 方法详细资料

    • resolveFilePath

      String resolveFilePath(String location, Resource resource)
      Return the path of the given resource if it can also be represented as a FileSystemResource.
      参数:
      location - the location used to create the resource
      resource - the resource to check
      返回:
      the file path of the resource or null if the it is not possible to represent the resource as a FileSystemResource.