| 构造器和说明 |
|---|
PropertySourcesUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Map<String,Object> |
getSubProperties(org.springframework.core.env.ConfigurableEnvironment environment,
String prefix)
Get Sub
Properties |
static Map<String,Object> |
getSubProperties(Iterable<org.springframework.core.env.PropertySource<?>> propertySources,
String prefix)
Get Sub
Properties |
static Map<String,Object> |
getSubProperties(org.springframework.core.env.PropertySources propertySources,
org.springframework.core.env.PropertyResolver propertyResolver,
String prefix)
Get prefixed
Properties |
static Map<String,Object> |
getSubProperties(org.springframework.core.env.PropertySources propertySources,
String prefix)
Get prefixed
Properties |
static String |
normalizePrefix(String prefix)
Normalize the prefix
|
public static Map<String,Object> getSubProperties(Iterable<org.springframework.core.env.PropertySource<?>> propertySources, String prefix)
PropertiespropertySources - PropertySource Iterableprefix - the prefix of property namePropertiespublic static Map<String,Object> getSubProperties(org.springframework.core.env.ConfigurableEnvironment environment, String prefix)
Propertiesenvironment - ConfigurableEnvironmentprefix - the prefix of property namePropertiespublic static String normalizePrefix(String prefix)
prefix - the prefixpublic static Map<String,Object> getSubProperties(org.springframework.core.env.PropertySources propertySources, String prefix)
PropertiespropertySources - PropertySourcesprefix - the prefix of property namePropertiespublic static Map<String,Object> getSubProperties(org.springframework.core.env.PropertySources propertySources, org.springframework.core.env.PropertyResolver propertyResolver, String prefix)
PropertiespropertySources - PropertySourcespropertyResolver - PropertyResolver to resolve the placeholder if presentprefix - the prefix of property namePropertiesCopyright © 2019. All rights reserved.