@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Configuration public @interface PostAutoConfiguration
Marker annotation indicating that the current class is both an @Configuration class
and should be executed after any Spring Boot EnableAutoConfiguration.
Classes that are annotated with this are assumed to be imported by PostAutoConfigurationImport.
Classes with this annotation cannot be within a nested @Configuration class or else
it will get picked up too early with the parent @Configuration class. It must be defined in
its own file.
Any classes that contains this annotation must be excluded from any component-scans. Corresponding required XML configuration example:
<context:component-scan base-package="org.broadleafcommerce.some.package">
<context:exclude-filter type="annotation" expression="org.broadleafcommerce.common.config.PostAutoConfiguration"/>
</context:component-scan>
Or in an @ComponentScan annotation:
@ComponentScan(basePackages = "org.broadleafcommerce.some.package",
excludeFilters = @Filter(type = FilterType.ANNOTATION, classes = PostAutoConfiguration.class))
}
PostAutoConfigurationImportCopyright © 2019. All rights reserved.