You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "wangenlu (GitHub)" <gi...@apache.org> on 2018/11/29 18:16:37 UTC
[GitHub] [incubator-dubbo-spring-boot-project] wangenlu commented on issue #302: 包扫描路径写成dubbo.scan.base-packages时,无法暴露服务
@ConditionalOnProperty(
name = {"dubbo.scan.basePackages"}
)
@ConditionalOnClass({ConfigurationPropertySources.class})
@Bean
public ServiceAnnotationBeanPostProcessor serviceAnnotationBeanPostProcessor(Environment environment) {
Set<String> packagesToScan = (Set)environment.getProperty("dubbo.scan.basePackages", Set.class, Collections.emptySet());
return new ServiceAnnotationBeanPostProcessor(packagesToScan);
}
但是在{
"sourceType": "com.alibaba.boot.dubbo.autoconfigure.DubboScanProperties",
"name": "dubbo.scan.base-packages",
"description": "The basePackages to scan , the multiple-value is delimited by comma\n\n @see EnableDubbo#scanBasePackages()",
"type": "java.util.Set<java.lang.String>"
}
造成自动提示dubbo.scan.base-packages 导致dubbo.scan.basePackages 获取不到,希望能及早更新一下吧,这个稍不留神就容易出错
[ Full content available at: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/302 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org