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