接口 ApplicationResourceLoader.FilePathResolver
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 location, Resource resource) Return thepathof the given resource if it can also be represented as aFileSystemResource.
-
方法详细资料
-
resolveFilePath
Return thepathof the given resource if it can also be represented as aFileSystemResource.- 参数:
location- the location used to create the resourceresource- the resource to check- 返回:
- the file path of the resource or
nullif the it is not possible to represent the resource as aFileSystemResource.
-