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

[GitHub] [incubator-dubbo] GiftedDrogon opened issue #2722: SpringBoot 如果手动注入ReferenceBean

使用ConfigurableListableBeanFactory类中的registerSingleton去注入ReferenceBean的话,getBean的时候因为判断是手动注入的  AbstractBeanFactory.getObjectForBeanInstance方法会返回一个null对象,所以注入的不应该是ReferenceBean。那么应该注入的是什么。有大佬可以告知一下?

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

[GitHub] [incubator-dubbo] zonghaishang commented on issue #2722: SpringBoot 如果手动注入ReferenceBean

Posted by "zonghaishang (GitHub)" <gi...@apache.org>.
```
RootBeanDefinition beanDefinition = new RootBeanDefinition();
beanDefinition.setBeanClass(ReferenceBean.class);
```

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


[GitHub] [incubator-dubbo] zonghaishang closed issue #2722: SpringBoot 如果手动注入ReferenceBean

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

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