org.springframework.boot.context.properties

Annotation Type EnableConfigurationProperties



  • @Target(value=TYPE)
     @Retention(value=RUNTIME)
     @Documented
     @Import(value=org.springframework.boot.context.properties.EnableConfigurationPropertiesRegistrar.class)
    public @interface EnableConfigurationProperties
    Enable support for @ConfigurationProperties annotated beans. @ConfigurationProperties beans can be registered in the standard way (for example using @Bean methods) or, for convenience, can be specified directly on this annotation.
    Since:
    1.0.0
    Author:
    Dave Syer
    • Field Summary

      Fields 
      Modifier and Type Fields and Description
      static String VALIDATOR_BEAN_NAME
      The bean name of the configuration properties validator.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element and Description
      Class<?>[] value
      Convenient way to quickly register @ConfigurationProperties annotated beans with Spring.
    • Field Detail

      • VALIDATOR_BEAN_NAME

        public static final String VALIDATOR_BEAN_NAME
        The bean name of the configuration properties validator.
        Since:
        2.2.0
    • Element Detail

      • value

        public abstract Class<?>[] value
        Convenient way to quickly register @ConfigurationProperties annotated beans with Spring. Standard Spring Beans will also be scanned regardless of this value.
        Returns:
        @ConfigurationProperties annotated beans to register
        Default:
        {}

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