@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 |
|---|---|
java.lang.Class<?>[] |
basePackageClasses
Type-safe alternative to
basePackages() for specifying the packages to be
registered with AutoConfigurationPackages. |
java.lang.String[] |
basePackages
Base packages that should be registered with
AutoConfigurationPackages. |
public abstract java.lang.String[] basePackages
AutoConfigurationPackages.
Use basePackageClasses() for a type-safe alternative to String-based package
names.
public abstract java.lang.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.