Annotation Interface AutoConfiguration


Indicates that a class provides configuration that can be automatically applied by Spring Boot. Auto-configuration classes are regular @Configuration with the exception that Configuration#proxyBeanMethods() proxyBeanMethods is always false.

They are located using ImportCandidates and the SpringFactoriesLoader mechanism (keyed against EnableAutoConfiguration).

Generally auto-configuration classes are marked as @Conditional (most often using @ConditionalOnClass and @ConditionalOnMissingBean annotations).

Since:
2.7.0
Author:
Moritz Halbritter
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
    The auto-configure classes that should have already been applied.
    The names of the auto-configure classes that should have already been applied.
    Class<?>[]
    The auto-configure classes that should have not yet been applied.
    The names of the auto-configure classes that should have not yet been applied.
    Explicitly specify the name of the Spring bean definition associated with the @AutoConfiguration class.