You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2018/11/29 18:16:38 UTC
[GitHub] wangenlu commented on issue #302: 包扫描路径写成dubbo.scan.base-packages时,无法暴露服务
wangenlu commented on issue #302: 包扫描路径写成dubbo.scan.base-packages时,无法暴露服务
URL: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/302#issuecomment-442937759
@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 获取不到,希望能及早更新一下吧,这个稍不留神就容易出错
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org