apache / dubbo

The java implementation of Apache Dubbo. An RPC and microservice framework.
https://dubbo.apache.org/
Apache License 2.0
40.51k stars 26.43k forks source link

did the @Reference can register an bean mapping in the spring context? #3733

Closed Comven closed 3 years ago

Comven commented 5 years ago

xml配置方式配置Reference会根据id生成一个对应的bean到spring上下文中,但是用注解后就失效了,以前通过名称从applicationContext中获取代理对象的方式就用不了了。能否参考https://gitee.com/reger/spring-boot-starter-dubbo这种增加一个@Inject注解或者优化@Reference注解能够注册到spring上下文中,以便以前老的项目能够方便切换到全注解方式使用

CrazyHZM commented 3 years ago

Try it with the latest version, if you still have problems, you can reopen the issues