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

[GitHub] [incubator-dubbo] gudegg commented on issue #2835: 讨论: 配置

问题1:可以去看下`org.springframework.beans.factory.support.MergedBeanDefinitionPostProcessor#postProcessMergedBeanDefinition`何时被调用就明白了
<img width="896" alt="dubbo" src="https://user-images.githubusercontent.com/13344666/49079075-aa2fee80-f27a-11e8-8906-e65efff22f7d.png">
作者说过@Reference实现和@Autowired实现相似,参考了AutowiredAnnotationBeanPostProcessor
问题2:
注解不填写时扫描包路径,看`org.apache.dubbo.config.spring.context.annotation.DubboComponentScanRegistrar#getPackagesToScan`
```java
        if (packagesToScan.isEmpty()) {
            return Collections.singleton(ClassUtils.getPackageName(metadata.getClassName()));
        }
```

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/2835 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org