接口 ConfigurationBeanBinder

  • 所有已知实现类:
    DefaultConfigurationBeanBinder

    public interface ConfigurationBeanBinder
    The binder for the configuration bean
    从以下版本开始:
    1.0.0
    作者:
    Mercy
    • 方法概要

      所有方法 实例方法 抽象方法 默认方法 
      修饰符和类型 方法 说明
      void bind​(java.util.Map<java.lang.String,​java.lang.Object> configurationProperties, boolean ignoreUnknownFields, boolean ignoreInvalidFields, java.lang.Object configurationBean)
      Bind the properties in the Environment to Configuration bean under specified prefix.
      default void setConversionService​(org.springframework.core.convert.ConversionService conversionService)
      Set the ConversionService
    • 方法详细资料

      • bind

        void bind​(java.util.Map<java.lang.String,​java.lang.Object> configurationProperties,
                  boolean ignoreUnknownFields,
                  boolean ignoreInvalidFields,
                  java.lang.Object configurationBean)
        Bind the properties in the Environment to Configuration bean under specified prefix.
        参数:
        configurationProperties - The configuration properties
        ignoreUnknownFields - whether to ignore unknown fields, the value is come from the attribute of EnableConfigurationBeanBinding.ignoreUnknownFields()
        ignoreInvalidFields - whether to ignore invalid fields, the value is come from the attribute of EnableConfigurationBeanBinding.ignoreInvalidFields()
        configurationBean - the bean of configuration
      • setConversionService

        default void setConversionService​(@Nullable
                                          org.springframework.core.convert.ConversionService conversionService)
        Set the ConversionService
        参数:
        conversionService - ConversionService