@Target(value=TYPE) @Retention(value=RUNTIME) @Inherited @Documented @Import(value=DubboConfigConfigurationRegistrar.class) public @interface EnableDubboConfig
EnableDubboConfigBinding
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 be true :
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"EnableDubboConfigBinding,
DubboConfigConfiguration,
DubboConfigConfigurationRegistrar| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
multiple
It indicates whether binding to multiple Spring Beans.
|
public abstract boolean multiple
Please note that if multiple() is true since 2.6.6, the multiple bean bindings will be
enabled, works with single bean bindings, rather than they are mutually exclusive before.
true since 2.6.6, the value is inverse earlier.Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.