@Target(value=TYPE) @Retention(value=RUNTIME) @Inherited @Documented @EnableDubboConfig @DubboComponentScan public @interface EnableDubbo
DubboComponentScan and EnableDubboConfig combination.
Note : EnableDubbo must base on Spring Framework 4.2 and above
DubboComponentScan,
EnableDubboConfig| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
multipleConfig
It indicates whether
AbstractConfig binding to multiple Spring Beans. |
Class<?>[] |
scanBasePackageClasses
Type-safe alternative to
scanBasePackages() for specifying the packages to
scan for annotated @Service classes. |
String[] |
scanBasePackages
Base packages to scan for annotated @Service classes.
|
@AliasFor(annotation=DubboComponentScan.class, attribute="basePackages") public abstract String[] scanBasePackages
Use scanBasePackageClasses() for a type-safe alternative to String-based
package names.
DubboComponentScan.basePackages()@AliasFor(annotation=DubboComponentScan.class, attribute="basePackageClasses") public abstract Class<?>[] scanBasePackageClasses
scanBasePackages() for specifying the packages to
scan for annotated @Service classes. The package of each class specified will be
scanned.DubboComponentScan.basePackageClasses()@AliasFor(annotation=EnableDubboConfig.class, attribute="multiple") public abstract boolean multipleConfig
AbstractConfig binding to multiple Spring Beans.falseEnableDubboConfig.multiple()Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.