接口 DubboConfigBinder

    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      <C extends AbstractConfig>
      void
      bind​(String prefix, C dubboConfig)
      Bind the properties to Dubbo Config Object under specified prefix.
      void setIgnoreInvalidFields​(boolean ignoreInvalidFields)
      Set whether to ignore invalid fields, that is, whether to ignore bind parameters that have corresponding fields in the target object which are not accessible (for example because of null values in the nested path).
      void setIgnoreUnknownFields​(boolean ignoreUnknownFields)
      Set whether to ignore unknown fields, that is, whether to ignore bind parameters that do not have corresponding fields in the target object.
      • 从接口继承的方法 org.springframework.context.EnvironmentAware

        setEnvironment
    • 方法详细资料

      • setIgnoreUnknownFields

        void setIgnoreUnknownFields​(boolean ignoreUnknownFields)
        Set whether to ignore unknown fields, that is, whether to ignore bind parameters that do not have corresponding fields in the target object.

        Default is "true". Turn this off to enforce that all bind parameters must have a matching field in the target object.

        另请参阅:
        bind(java.lang.String, C)
      • setIgnoreInvalidFields

        void setIgnoreInvalidFields​(boolean ignoreInvalidFields)
        Set whether to ignore invalid fields, that is, whether to ignore bind parameters that have corresponding fields in the target object which are not accessible (for example because of null values in the nested path).

        Default is "false".

        另请参阅:
        bind(java.lang.String, C)
      • bind

        <C extends AbstractConfig> void bind​(String prefix,
                                             C dubboConfig)
        Bind the properties to Dubbo Config Object under specified prefix.
        参数:
        prefix -
        dubboConfig -