注释类型 EnableDubbo
-
@Target(TYPE) @Retention(RUNTIME) @Inherited @Documented @EnableDubboConfig @DubboComponentScan public @interface EnableDubbo
Enables Dubbo components as Spring Beans, equalsDubboComponentScan
andEnableDubboConfig
combination.Note :
EnableDubbo
must base on Spring Framework 4.2 and above- 从以下版本开始:
- 2.5.8
- 另请参阅:
DubboComponentScan
,EnableDubboConfig
-
-
可选元素概要
可选元素 修饰符和类型 可选元素 说明 boolean
multipleConfig
It indicates whetherAbstractConfig
binding to multiple Spring Beans.Class<?>[]
scanBasePackageClasses
Type-safe alternative toscanBasePackages()
for specifying the packages to scan for annotated @Service classes.String[]
scanBasePackages
Base packages to scan for annotated @Service classes.
-
-
-
元素详细资料
-
scanBasePackages
@AliasFor(annotation=DubboComponentScan.class, attribute="basePackages") String[] scanBasePackages
Base packages to scan for annotated @Service classes.Use
scanBasePackageClasses()
for a type-safe alternative to String-based package names.- 返回:
- the base packages to scan
- 另请参阅:
DubboComponentScan.basePackages()
- 默认值:
- {}
-
-
-
scanBasePackageClasses
@AliasFor(annotation=DubboComponentScan.class, attribute="basePackageClasses") Class<?>[] scanBasePackageClasses
Type-safe alternative toscanBasePackages()
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
- 另请参阅:
DubboComponentScan.basePackageClasses()
- 默认值:
- {}
-
-
-
multipleConfig
@AliasFor(annotation=EnableDubboConfig.class, attribute="multiple") boolean multipleConfig
It indicates whetherAbstractConfig
binding to multiple Spring Beans.- 返回:
- the default value is
false
- 另请参阅:
EnableDubboConfig.multiple()
- 默认值:
- true
-
-