You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "jaychang9 (GitHub)" <gi...@apache.org> on 2018/11/06 05:03:03 UTC

[GitHub] [incubator-dubbo-spring-boot-project] jaychang9 opened issue #302: 包扫描路径写成dubbo.scan.base-packages时,无法暴露服务

在application.properties配置文件中,将扫描包路径写成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

[GitHub] [incubator-dubbo-spring-boot-project] nswish commented on issue #302: 包扫描路径写成dubbo.scan.base-packages时,无法暴露服务

Posted by "nswish (GitHub)" <gi...@apache.org>.
有用!

[ 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

[GitHub] [incubator-dubbo-spring-boot-project] mercyblitz commented on issue #302: 包扫描路径写成dubbo.scan.base-packages时,无法暴露服务

Posted by "mercyblitz (GitHub)" <gi...@apache.org>.
Thanks for your report, this merged PR will resolve this issue : https://github.com/apache/incubator-dubbo-spring-boot-project/pull/233

[ 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


[GitHub] [incubator-dubbo-spring-boot-project] mercyblitz closed issue #302: 包扫描路径写成dubbo.scan.base-packages时,无法暴露服务

Posted by "mercyblitz (GitHub)" <gi...@apache.org>.
[ issue closed by mercyblitz ]

[ 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


[GitHub] [incubator-dubbo-spring-boot-project] wangenlu commented on issue #302: 包扫描路径写成dubbo.scan.base-packages时,无法暴露服务

Posted by "wangenlu (GitHub)" <gi...@apache.org>.
@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