@ConditionalOnProperty(prefix="dubbo",
name="enabled",
matchIfMissing=true)
@ConditionalOnClass(name="org.springframework.boot.bind.RelaxedPropertyResolver")
@Configuration
public class DubboRelaxedBindingAutoConfiguration
extends Object
Configuration for Spring Boot 1.x| Constructor and Description |
|---|
DubboRelaxedBindingAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
dubboBasePackages(org.springframework.core.env.Environment environment)
The bean is used to scan the packages of Dubbo Service classes
|
org.springframework.core.env.PropertyResolver |
dubboScanBasePackagesPropertyResolver(org.springframework.core.env.Environment environment) |
com.alibaba.spring.context.config.ConfigurationBeanBinder |
relaxedDubboConfigBinder() |
public DubboRelaxedBindingAutoConfiguration()
public org.springframework.core.env.PropertyResolver dubboScanBasePackagesPropertyResolver(org.springframework.core.env.Environment environment)
@ConditionalOnMissingBean(name="dubbo-service-class-base-packages") @Bean(name="dubbo-service-class-base-packages") public Set<String> dubboBasePackages(org.springframework.core.env.Environment environment)
environment - Environment instanceSet@ConditionalOnMissingBean(name="relaxedDubboConfigBinder",
value=com.alibaba.spring.context.config.ConfigurationBeanBinder.class)
@Bean(value="relaxedDubboConfigBinder")
@Scope(scopeName="prototype")
public com.alibaba.spring.context.config.ConfigurationBeanBinder relaxedDubboConfigBinder()
Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.