dubbo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] zonghaishang opened a new issue #1549: @EnableDubbo annotation throw No bean named 'xxx' available error
Date Wed, 04 Apr 2018 02:42:09 GMT
zonghaishang opened a new issue #1549: @EnableDubbo annotation throw No bean named 'xxx' available
error
URL: https://github.com/apache/incubator-dubbo/issues/1549
 
 
   When use @EnableDubbo with property file: 
   
   ```
       @Configuration
       @EnableDubbo(scanBasePackages = "com.alibaba.dubbo.examples.annotation.action")
       @PropertySource("classpath:/com/alibaba/dubbo/examples/annotation/dubbo-consumer.properties")
       static public class ConsumerConfiguration {
       }
   
   package com.alibaba.dubbo.examples.annotation.action;
   
   @Component("annotationAction")
   public class AnnotationAction {
   
       @Reference
       private AnnotationService annotationService;
   
       public String doSayHello(String name) {
           return annotationService.sayHello(name);
       }
   }
   ```
   Throw an error´╝Ü org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
named 'annotationAction' available
   
   more detail can see: com.alibaba.dubbo.examples.annotation.AnnotationConsumer

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message