Closed Comven closed 6 years ago
by the way, when I configiured it by
@Reference
works for setter injection , like @Autowired
.
If application invoked <dubbo:reference>
under XMl-based configuration , the ReferenceBean
bean will be present in ApplicationContext
.
@mercyblitz But I don't want to use XML to configure it because we use springboot, Is there any other way to do it?perhaps the newest dubbo-spring-boot-starter will support it?
@Comven It will be add into endpoint on spring boot starter , please refer here : https://github.com/dubbo/dubbo-spring-boot-project/milestone/1
When the @Reference annotation is used, is there a way to get it from the spring context, such as ApplicationContext.getBean ("Dubbo interface name")? I printed the details of ApplicationContext, and I couldn't find the bean injected by @Reference. Is there a way to achieve it