注释类型 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-providedService
andReference
.
-
-
可选元素概要
可选元素 修饰符和类型 可选元素 说明 Class<?>[]
basePackageClasses
Type-safe alternative tobasePackages()
for specifying the packages to scan for annotated @Service classes.String[]
basePackages
Base packages to scan for annotated @Service classes.String[]
value
Alias 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
- 默认值:
- {}
-
-