注释类型 EnableDubboConfig
-
@Target(TYPE) @Retention(RUNTIME) @Inherited @Documented @Import(DubboConfigConfigurationRegistrar.class) public @interface EnableDubboConfig
As a convenient and multipleEnableDubboConfigBinding
in default behavior , is equal to single bean bindings with below convention prefixes of properties:ApplicationConfig
binding to property : "dubbo.application"ModuleConfig
binding to property : "dubbo.module"RegistryConfig
binding to property : "dubbo.registry"ProtocolConfig
binding to property : "dubbo.protocol"MonitorConfig
binding to property : "dubbo.monitor"ProviderConfig
binding to property : "dubbo.provider"ConsumerConfig
binding to property : "dubbo.consumer"
On multiple bean bindings that requires to set
multiple()
to betrue
:ApplicationConfig
binding to property : "dubbo.applications"ModuleConfig
binding to property : "dubbo.modules"RegistryConfig
binding to property : "dubbo.registries"ProtocolConfig
binding to property : "dubbo.protocols"MonitorConfig
binding to property : "dubbo.monitors"ProviderConfig
binding to property : "dubbo.providers"ConsumerConfig
binding to property : "dubbo.consumers"
- 从以下版本开始:
- 2.5.8
- 另请参阅:
EnableDubboConfigBinding
,DubboConfigConfiguration
,DubboConfigConfigurationRegistrar
-
-
可选元素概要
可选元素 修饰符和类型 可选元素 说明 boolean
multiple
It indicates whether binding to multiple Spring Beans.
-
-
-
元素详细资料
-
multiple
boolean multiple
It indicates whether binding to multiple Spring Beans.Please note that if
multiple()
istrue
since 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
true
since 2.6.6, the value is inverse earlier.
- 默认值:
- true
-
-