Skip to content
This repository has been archived by the owner on Dec 12, 2018. It is now read-only.

消费者设置lazy=true时不生效 #98

Open
yangjianzhou opened this issue Jun 5, 2018 · 0 comments
Open

消费者设置lazy=true时不生效 #98

yangjianzhou opened this issue Jun 5, 2018 · 0 comments

Comments

@yangjianzhou
Copy link

客户端设置dubbo.consumer.lazy=true时,所有的@reference在启动时,不应该去检查是否为null了,这样就会导致lazy的配置不起作用。
org.springframework.beans.factory.config.BeanPostProcessor#postProcessBeforeInitialization的
if (dubboReference == null) { referenceBean.afterPropertiesSet(); // dubboReference should not be null, otherwise it will cause // NullPointerException dubboReference = referenceBean.getObject(); DubboConsumerAutoConfiguration.DUBBO_REFERENCES_MAP.put(classIdBean, dubboReference); }
期望早日修复

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant