Annotation Interface AutoConfigurationPackage


@Inherited @Documented @Target(TYPE) @Retention(RUNTIME) public @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
另请参阅:
  • 元素详细资料

    • basePackages

      String[] basePackages
      Base packages that should be registered with AutoConfigurationPackages.

      Use basePackageClasses() for a type-safe alternative to String-based package names.

      返回:
      the back package names
      默认值:
      {}
    • basePackageClasses

      Class<?>[] basePackageClasses
      Type-safe alternative to 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.

      返回:
      the base package classes
      默认值:
      {}