类 PropertySourcesUtils


  • public abstract class PropertySourcesUtils
    extends 
    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
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static <,​> <org.springframework.core.env.PropertySource<?>> propertySources,  prefix)
      Get Sub
      static <,​> getSubProperties​(org.springframework.core.env.ConfigurableEnvironment environment,  prefix)
      Get Sub
      static  prefix)
      Normalize the prefix
      • 从类继承的方法 java.lang.

        , , , , , , , ,
    • 构造器详细资料

      • PropertySourcesUtils

        public PropertySourcesUtils()
    • 方法详细资料

      • getSubProperties

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

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

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