public abstract class PropertySourcesUtils
extends java.lang.Object
PropertySources UtilitiesPropertySources| 构造器 | 说明 |
|---|---|
PropertySourcesUtils() |
| 修饰符和类型 | 方法 | 说明 |
|---|---|---|
static java.util.Map<java.lang.String,java.lang.Object> |
getSubProperties(java.lang.Iterable<org.springframework.core.env.PropertySource<?>> propertySources,
java.lang.String prefix) |
Get Sub
Properties |
static java.util.Map<java.lang.String,java.lang.Object> |
getSubProperties(org.springframework.core.env.ConfigurableEnvironment environment,
java.lang.String prefix) |
Get Sub
Properties |
static java.lang.String |
normalizePrefix(java.lang.String prefix) |
Normalize the prefix
|
public static java.util.Map<java.lang.String,java.lang.Object> getSubProperties(java.lang.Iterable<org.springframework.core.env.PropertySource<?>> propertySources,
java.lang.String prefix)
PropertiespropertySources - PropertySource Iterableprefix - the prefix of property namePropertiespublic static java.util.Map<java.lang.String,java.lang.Object> getSubProperties(org.springframework.core.env.ConfigurableEnvironment environment,
java.lang.String prefix)
Propertiesenvironment - ConfigurableEnvironmentprefix - the prefix of property namePropertiespublic static java.lang.String normalizePrefix(java.lang.String prefix)
prefix - the prefixCopyright © 2018. All rights reserved.