I also encountered this problem too that placeholder is not going to working in
xml for reference bean. I found the reason of this issue is reference bean has
been early initialized when spring can't infer the target type of factory bean
and reference bean is type of factory bean. I has solved this issue by copy a
`DubboBeanDefinitionParser` class and override the default,and add follow
codes in parse method:
```java
else if(ReferenceBean.class.equals(beanClass)){
String interfaceClassName = element.getAttribute("interface");
if(StringUtils.isNotEmpty(interfaceClassName)){
Class<?> interfaceClass =
ReflectUtils.forName(interfaceClassName);
beanDefinition.setTargetType(interfaceClass);
}
}
```
I have add a pull request for solve this issue, fixed #5710
[ Full content available at: https://github.com/apache/dubbo/issues/5755 ]
This message was relayed via gitbox.apache.org for
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]