注释类型 DubboComponentScan
-
@Target(TYPE) @Retention(RUNTIME) @Documented @Import(DubboComponentScanRegistrar.class) public @interface DubboComponentScan
Dubbo Component ScanAnnotation,scans the classpath for annotated components that will be auto-registered as Spring beans. Dubbo-providedServiceandReference.
-
-
可选元素概要
可选元素 修饰符和类型 可选元素 说明 Class<?>[]basePackageClassesType-safe alternative tobasePackages()for specifying the packages to scan for annotated @Service classes.String[]basePackagesBase packages to scan for annotated @Service classes.String[]valueAlias for thebasePackages()attribute.
-
-
-
元素详细资料
-
value
String[] value
Alias for thebasePackages()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 tobasePackages()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
- 默认值:
- {}
-
-