ConfigurationProperties

Annotation for externalized configuration. Add this to a class definition or a @Bean method in a @Configuration class if you want to bind and validate some external Properties (e.g. from a .properties file).

Binding is either performed by calling setters on the annotated class or, if @ConstructorBinding is in use, by binding to the constructor parameters.

Note that contrary to @Value, SpEL expressions are not evaluated since property values are externalized.

Author

Dave Syer

Since

1.0.0

See also

Functions

Link copied to clipboard
abstract fun annotationType(): Class<out Annotation>
Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
Flag to indicate that when binding to this object invalid fields should be ignored.
Link copied to clipboard
Flag to indicate that when binding to this object unknown fields should be ignored.
Link copied to clipboard
@AliasFor(value = "value")
abstract fun prefix(): String
The prefix of the properties that are valid to bind to this object.
Link copied to clipboard
abstract fun toString(): String
Link copied to clipboard
@AliasFor(value = "prefix")
abstract fun value(): String
The prefix of the properties that are valid to bind to this object.