程序包 org.springframework.boot.bind
Classes and utilities to help when binding spring based configuration files to objects.
类概要 类 说明 InetAddressEditor PropertyEditor
forInetAddress
objects.PropertiesConfigurationFactory<T> Validate someProperties
(or optionallyPropertySources
) by binding them to an object of a specified type and then optionally running aValidator
over it.PropertyOrigin The origin of a property, specifically its source and its name before any prefix was removed.PropertySourcesBinder Helper extracting info fromPropertySources
.PropertySourcesPropertyValues APropertyValues
implementation backed by aPropertySources
, bridging the two abstractions and allowing (for instance) a regularDataBinder
to be used with the latter.PropertySourceUtils Convenience class for manipulating PropertySources.RelaxedDataBinder Binder implementation that allows caller to bind to maps and also allows property names to match a bit loosely (if underscores or dashes are removed and replaced with camel case for example).RelaxedNames Generates relaxed name variations from a given source.RelaxedPropertyResolver PropertyResolver
that attempts to resolve values usingRelaxedNames
.YamlConfigurationFactory<T> Validate some YAML by binding it to an object of a specified type and then optionally running aValidator
over it.YamlJavaBeanPropertyConstructor Extended version of snakeyaml's Constructor class to facilitate mapping custom YAML keys to JavaBean property names.异常错误概要 异常错误 说明 RelaxedBindingNotWritablePropertyException A customNotWritablePropertyException
that is thrown when a failure occurs during relaxed binding.