public abstract class PropertySourcesUtils extends Object
PropertySources Utilities
The source code is cloned from https://github.com/alibaba/spring-context-support/blob/1.0.2/src/main/java/com/alibaba/spring/util/PropertySourcesUtils.java
| Constructor and Description |
|---|
PropertySourcesUtils() |
| Modifier and Type | Method and Description |
|---|---|
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 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 namePropertiesCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.