概述
@ConditionalOnProperty(
name = {“dubbo.scan.basePackages”}
)
@ConditionalOnClass({ConfigurationPropertySources.class})
@bean
public ServiceAnnotationBeanPostProcessor serviceAnnotationBeanPostProcessor(Environment environment) {
Set 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 @see EnableDubbo#scanBasePackages()”,
“type”: “java.util.Set”
}
造成自动提示dubbo.scan.base-packages 导致dubbo.scan.basePackages 获取不到,希望能及早更新一下吧,这个稍不留神就容易出错
最后
以上就是完美小刺猬为你收集整理的包扫描路径写成dubbo.scan.base-packages时,无法暴露服务的全部内容,希望文章能够帮你解决包扫描路径写成dubbo.scan.base-packages时,无法暴露服务所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复