buddhaLi opened a new pull request #394:
URL: https://github.com/apache/dubbo-samples/pull/394
ContextConsumer.class
ContextService contextService = context.getBean("**demoService**",
ContextService.class);
dubbo-context-consumer.xml
<dubbo:reference scope="remote" id="contextService" check="false"
interface="org.apache.dubbo.samples.context.api.ContextService"/>
Exception in thread "main"
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named
'demoService' available
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:687)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1213)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:284)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at
org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1086)
at
org.apache.dubbo.samples.context.ContextConsumer.main(ContextConsumer.java:29)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]