@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Inherited @Import(value=org.springframework.boot.autoconfigure.AutoConfigurationPackages.Registrar.class) public @interface AutoConfigurationPackage
AutoConfigurationPackages. When no base packages or base package classes are specified, the
package of the annotated class is registered.AutoConfigurationPackages| Modifier and Type | Optional Element and Description |
|---|---|
Class<?>[] |
basePackageClasses
Type-safe alternative to
basePackages() for specifying the packages to be
registered with AutoConfigurationPackages. |
String[] |
basePackages
Base packages that should be registered with
AutoConfigurationPackages. |
public abstract String[] basePackages
AutoConfigurationPackages.
Use basePackageClasses() for a type-safe alternative to String-based package
names.
public abstract Class<?>[] basePackageClasses
basePackages() for specifying the packages to be
registered with AutoConfigurationPackages.
Consider creating a special no-op marker class or interface in each package that serves no purpose other than being referenced by this attribute.