public abstract class ResourceUtils extends Object
| 构造器和说明 |
|---|
ResourceUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static org.springframework.core.io.Resource[] |
getResources(String... locationPatternArr)
获取所有位置下的所有文件资源
|
static org.springframework.core.io.Resource[] |
getResources(String locationPattern)
获取位置下的所有文件资源
|
static String |
getResourceUri(org.springframework.core.io.Resource resource)
获取资源路径
|
@NonNull public static org.springframework.core.io.Resource[] getResources(String locationPattern)
locationPattern - 要解析的位置@NonNull public static org.springframework.core.io.Resource[] getResources(String... locationPatternArr)
locationPatternArr - 要解析的位置数组@NonNull public static String getResourceUri(@NonNull org.springframework.core.io.Resource resource)
resource - 目录或文件资源Copyright © 2021 EasyJ寮�婧愮ぞ鍖�. All rights reserved.