注释类型 DubboComponentScan
-
() () @Import(DubboComponentScanRegistrar.class) public @interface DubboComponentScan
-
-
可选元素概要
可选元素 修饰符和类型 可选元素 说明 <?>[]
basePackageClasses
Type-safe alternative tobasePackages()
for specifying the packages to scan for annotated @Service classes.[]
basePackages
Base packages to scan for annotated @Service classes.[]
value
Alias for thebasePackages()
attribute.
-
-
-
元素详细资料
-
value
[] 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
[] 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 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
- 默认值:
- {}
-
-