| 程序包 | 说明 |
|---|---|
| org.springframework.core.io.support |
Support classes for Spring's resource abstraction.
|
| 限定符和类型 | 方法和说明 |
|---|---|
PropertySource<?> |
DefaultPropertySourceFactory.createPropertySource(String name,
EncodedResource resource) |
PropertySource<?> |
PropertySourceFactory.createPropertySource(String name,
EncodedResource resource)
Create a
PropertySource that wraps the given resource. |
static void |
PropertiesLoaderUtils.fillProperties(Properties props,
EncodedResource resource)
Fill the given properties from the given EncodedResource,
potentially defining a specific encoding for the properties file.
|
static Properties |
PropertiesLoaderUtils.loadProperties(EncodedResource resource)
Load properties from the given EncodedResource,
potentially defining a specific encoding for the properties file.
|
| 构造器和说明 |
|---|
ResourcePropertySource(EncodedResource resource)
Create a PropertySource based on Properties loaded from the given resource.
|
ResourcePropertySource(String name,
EncodedResource resource)
Create a PropertySource having the given name based on Properties
loaded from the given encoded resource.
|