DubboReference
时间: 2024-04-25 18:20:59 浏览: 10
DubboReference是一个注解,用于在自动注入的Bean上表示该Bean为Dubbo Reference。在使用Dubbo框架时,我们可以通过在Bean上添加@DubboReference注解来注入Dubbo服务。方式一是通过ReferenceAnnotationBeanPostProcessor来解析DubboReference注解,并为标注了@DubboReference的ReferenceBean构建RootBeanDefinition。方式二是通过ReferenceAnnotationBeanPostProcessor来填充标注了@DubboReference的ReferenceBean的RootBeanDefinition的Dubbo相关属性。无论是方式一还是方式二,最终都是通过ReferenceBeanManager来创建Dubbo Reference。在方式二中,如果Spring容器中已经存在标注了@DubboReference的Bean的BeanDefinition,那么DubboReference会被当作普通的Bean,由AutowiredAnnotationBeanPostProcessor完成依赖注入动作。总之,DubboReference是用于标识Dubbo Reference的注解,并且在Dubbo框架中起到了关键的作用。
#### 引用[.reference_title]
- *1* *2* *3* [Dubbo学习之DubboReference](https://blog.csdn.net/xing_hung/article/details/124637308)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)