public abstract class AbstractPropertySourceUtils extends Object
PropertySource,
PropertySources| 构造器和说明 |
|---|
AbstractPropertySourceUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Map<String,Object> |
getSubProperties(org.springframework.core.env.PropertySources propertySources,
String keyPrefix)
Return a Map of all values from the specified
PropertySources that start
with a particular key. |
static Map<String,Object> |
getSubProperties(org.springframework.core.env.PropertySources propertySources,
String rootPrefix,
String keyPrefix)
Return a Map of all values from the specified
PropertySources that start
with a particular key. |
public static Map<String,Object> getSubProperties(org.springframework.core.env.PropertySources propertySources, String keyPrefix)
PropertySources that start
with a particular key.propertySources - the property sources to scankeyPrefix - the key prefixes to testgetSubProperties(PropertySources, String, String)public static Map<String,Object> getSubProperties(org.springframework.core.env.PropertySources propertySources, String rootPrefix, String keyPrefix)
PropertySources that start
with a particular key.propertySources - the property sources to scanrootPrefix - a root prefix to be prepended to the keyPrefix (can be
null)keyPrefix - the key prefixes to testgetSubProperties(PropertySources, String, String)Copyright © 2021. All rights reserved.