类 PropertySourcesUtils


  • 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

    从以下版本开始:
    2.6.6
    • 构造器详细资料

      • PropertySourcesUtils

        public PropertySourcesUtils()
    • 方法详细资料

      • getSubProperties

        public static Map<String,Object> getSubProperties(Iterable<org.springframework.core.env.PropertySource<?>> propertySources,
                                                                String prefix)
        Get Sub Properties
        参数:
        propertySources - PropertySource Iterable
        prefix - the prefix of property name
        返回:
        Map
        另请参阅:
        Properties
      • getSubProperties

        public static Map<String,Object> getSubProperties(org.springframework.core.env.ConfigurableEnvironment environment,
                                                                String prefix)
        Get Sub Properties
        参数:
        environment - ConfigurableEnvironment
        prefix - the prefix of property name
        返回:
        Map
        另请参阅:
        Properties
      • normalizePrefix

        public static String normalizePrefix(String prefix)
        Normalize the prefix
        参数:
        prefix - the prefix
        返回:
        the prefix