注释类型 DubboComponentScan

    • 元素详细资料

      • value

        String[] 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

        String[] 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

        Class<?>[] 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
        默认值:
        {}