@Target(value={TYPE,CONSTRUCTOR}) @Retention(value=RUNTIME) @Documented public @interface ConstructorBinding
Note: To use constructor binding the class must be enabled using
@EnableConfigurationProperties
or configuration
property scanning. Constructor binding cannot be used with beans that are created by
the regular Spring mechanisms (e.g.
@Component
beans, beans created via
@Bean
methods or beans loaded using
@Import
).
ConfigurationProperties