@Retention(value=RUNTIME) @Target(value=TYPE) @Configuration public @interface AutoConfiguration
The application should be configured the way that the bean annotated with this annotation should be ignored when doing component classpath scanning.
Very likely, if you have bean defined in spring.factories under
org.springframework.boot.autoconfigure.EnableAutoConfiguration property you want to have bean annotated with this annotation.
Note that the bean should not be also annotated with Configuration
annotation.
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.