alibaba / dubbo-spring-boot-starter

Dubbo Spring Boot Starter
Apache License 2.0
2.1k stars 745 forks source link

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

Open yangjianzhou opened 6 years ago

yangjianzhou commented 6 years ago

客户端设置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); } 期望早日修复