org.springframework.boot.context.properties

Annotation Type ConstructorBinding



  • @Target(value={TYPE,CONSTRUCTOR})
     @Retention(value=RUNTIME)
     @Documented
    public @interface ConstructorBinding
    Annotation that can be used to indicate that configuration properties should be bound using constructor arguments rather than by calling setters. Can be added at the type level (if there is an unambiguous constructor) or on the actual constructor to use.
    Since:
    2.2.0
    Author:
    Phillip Webb
    See Also:
    ConfigurationProperties

Copyright © 2021 Pivotal Software, Inc.. All rights reserved.