org.springframework.boot

Annotation Type SpringBootConfiguration



  • @Target(value=TYPE)
     @Retention(value=RUNTIME)
     @Documented
     @Configuration
    public @interface SpringBootConfiguration
    Indicates that a class provides Spring Boot application @Configuration. Can be used as an alternative to the Spring's standard @Configuration annotation so that configuration can be found automatically (for example in tests).

    Application should only ever include one @SpringBootConfiguration and most idiomatic Spring Boot applications will inherit it from @SpringBootApplication.

    Since:
    1.4.0
    Author:
    Phillip Webb

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