zeng54088 opened a new issue #99: How to Generic reference
URL: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/99
 
 
   DubboConfiguration
   
   @Configuration
   public class DubboConfiguration {
   
       @Bean
       public ReferenceBean referenceBean(){
           ReferenceBean referenceConfig=new ReferenceBean();
           
referenceConfig.setInterface("com.alibaba.boot.dubbo.demo.consumer.DemoService");
           referenceConfig.setId("fzjh");
           return referenceConfig;
   
       }
   }
   
   but Exception no bean
   org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean 
named 'fzjh' is defined
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:698)
 ~[spring-beans-4.2.3.RELEASE.jar:4.2.3.RELEASE]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1175)
 ~[spring-beans-4.2.3.RELEASE.jar:4.2.3.RELEASE]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:284)
 ~[spring-beans-4.2.3.RELEASE.jar:4.2.3.RELEASE]
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to