@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Inherited @AutoConfigurationPackage @Import(value=org.springframework.boot.autoconfigure.ImportAutoConfigurationImportSelector.class) public @interface ImportAutoConfiguration
@EnableAutoConfiguration
but restricts the auto-configuration classes
to the specified set, rather than consulting spring.factories
.
Generally, @EnableAutoConfiguration
should be used in preference to this
annotation, however, @ImportAutoConfiguration
can be useful in some situations
and especially when writing tests.
public abstract Class<?>[] value
META-INF/spring.factories
where the key is the
fully-qualified name of the annotated class.Copyright © 2016 Pivotal Software, Inc.. All rights reserved.