Annotation Interface AutoConfigurationPackage
Registers packages with
AutoConfigurationPackages. When no base packages or base package classes are specified, the
package of the annotated class is registered.- 从以下版本开始:
- 4.0 2022/2/1 02:36
- 作者:
- Phillip Webb, Harry Yang
- 另请参阅:
-
可选元素概要
可选元素修饰符和类型可选元素说明Class<?>[]Type-safe alternative tobasePackages()for specifying the packages to be registered withAutoConfigurationPackages.String[]Base packages that should be registered withAutoConfigurationPackages.
-
元素详细资料
-
basePackages
String[] basePackagesBase packages that should be registered withAutoConfigurationPackages.Use
basePackageClasses()for a type-safe alternative to String-based package names.- 返回:
- the back package names
- 默认值:
- {}
-
basePackageClasses
Class<?>[] basePackageClassesType-safe alternative tobasePackages()for specifying the packages to be registered withAutoConfigurationPackages.Consider creating a special no-op marker class or interface in each package that serves no purpose other than being referenced by this attribute.
- 返回:
- the base package classes
- 默认值:
- {}
-