注释类型 DubboComponentScan

    • 可选元素概要

      可选元素 
      修饰符和类型 可选元素 说明
      <?>[] basePackageClasses
      Type-safe alternative to basePackages() for specifying the packages to scan for annotated @Service classes.
      [] basePackages
      Base packages to scan for annotated @Service classes.
      [] value
      Alias for the basePackages() attribute.
    • 元素详细资料

      • value

        [] value
        Alias for the basePackages() attribute. Allows for more concise annotation declarations e.g.: @DubboComponentScan("org.my.pkg") instead of @DubboComponentScan(basePackages="org.my.pkg").
        返回:
        the base packages to scan
        默认值:
        {}
      • basePackages

        [] basePackages
        Base packages to scan for annotated @Service classes. value() is an alias for (and mutually exclusive with) this attribute.

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

        返回:
        the base packages to scan
        默认值:
        {}
      • basePackageClasses

        <?>[] basePackageClasses
        Type-safe alternative to basePackages() for specifying the packages to scan for annotated @Service classes. The package of each class specified will be scanned.
        返回:
        classes from the base packages to scan
        默认值:
        {}