注释类型 EnableDubboConfig
-
@Target(TYPE) @Retention(RUNTIME) @Inherited @Documented @Import(DubboConfigConfigurationRegistrar.class) public @interface EnableDubboConfig
As a convenient and multipleEnableDubboConfigBindingin default behavior , is equal to single bean bindings with below convention prefixes of properties:ApplicationConfigbinding to property : "dubbo.application"ModuleConfigbinding to property : "dubbo.module"RegistryConfigbinding to property : "dubbo.registry"ProtocolConfigbinding to property : "dubbo.protocol"MonitorConfigbinding to property : "dubbo.monitor"ProviderConfigbinding to property : "dubbo.provider"ConsumerConfigbinding to property : "dubbo.consumer"
On multiple bean bindings that requires to set
multiple()to betrue:ApplicationConfigbinding to property : "dubbo.applications"ModuleConfigbinding to property : "dubbo.modules"RegistryConfigbinding to property : "dubbo.registries"ProtocolConfigbinding to property : "dubbo.protocols"MonitorConfigbinding to property : "dubbo.monitors"ProviderConfigbinding to property : "dubbo.providers"ConsumerConfigbinding to property : "dubbo.consumers"
- 从以下版本开始:
- 2.5.8
- 另请参阅:
EnableDubboConfigBinding,DubboConfigConfiguration,DubboConfigConfigurationRegistrar
-
-
可选元素概要
可选元素 修饰符和类型 可选元素 说明 booleanmultipleIt indicates whether binding to multiple Spring Beans.
-
-
-
元素详细资料
-
multiple
boolean multiple
It indicates whether binding to multiple Spring Beans.Please note that if
multiple()istruesince 2.6.6, the multiple bean bindings will be enabled, works with single bean bindings, rather than they are mutually exclusive before.- 返回:
- the default value is
truesince 2.6.6, the value is inverse earlier.
- 默认值:
- true
-
-