类 PropertySourcesUtils
- java.lang.Object
-
- com.alibaba.dubbo.config.spring.util.PropertySourcesUtils
-
public abstract class PropertySourcesUtils extends Object
PropertySources
UtilitiesThe 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
- 从以下版本开始:
- 2.6.6
-
-
构造器概要
构造器 构造器 说明 PropertySourcesUtils()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static Map<String,Object>
getSubProperties(Iterable<org.springframework.core.env.PropertySource<?>> propertySources, String prefix)
Get SubProperties
static Map<String,Object>
getSubProperties(org.springframework.core.env.ConfigurableEnvironment environment, String prefix)
Get SubProperties
static String
normalizePrefix(String prefix)
Normalize the prefix
-
-
-
方法详细资料
-
getSubProperties
public static Map<String,Object> getSubProperties(Iterable<org.springframework.core.env.PropertySource<?>> propertySources, String prefix)
Get SubProperties
- 参数:
propertySources
-PropertySource
Iterableprefix
- the prefix of property name- 返回:
- Map
- 另请参阅:
Properties
-
getSubProperties
public static Map<String,Object> getSubProperties(org.springframework.core.env.ConfigurableEnvironment environment, String prefix)
Get SubProperties
- 参数:
environment
-ConfigurableEnvironment
prefix
- the prefix of property name- 返回:
- Map
- 另请参阅:
Properties
-
-