接口 ConfigurationBeanBinder
-
- 所有已知实现类:
DefaultConfigurationBeanBinder
public interface ConfigurationBeanBinderThe binder for the configuration bean- 从以下版本开始:
- 1.0.0
- 作者:
- Mercy
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 voidbind(java.util.Map<java.lang.String,java.lang.Object> configurationProperties, boolean ignoreUnknownFields, boolean ignoreInvalidFields, java.lang.Object configurationBean)Bind the properties in theEnvironmentto Configuration bean under specified prefix.default voidsetConversionService(org.springframework.core.convert.ConversionService conversionService)Set theConversionService
-
-
-
方法详细资料
-
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 theEnvironmentto Configuration bean under specified prefix.- 参数:
configurationProperties- The configuration propertiesignoreUnknownFields- whether to ignore unknown fields, the value is come from the attribute ofEnableConfigurationBeanBinding.ignoreUnknownFields()ignoreInvalidFields- whether to ignore invalid fields, the value is come from the attribute ofEnableConfigurationBeanBinding.ignoreInvalidFields()configurationBean- the bean of configuration
-
setConversionService
default void setConversionService(@Nullable org.springframework.core.convert.ConversionService conversionService)Set theConversionService- 参数:
conversionService-ConversionService
-
-