From dev-return-830-archive-asf-public=cust-asf.ponee.io@dubbo.apache.org Wed Apr 4 04:42:11 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id BA8B718064D for ; Wed, 4 Apr 2018 04:42:10 +0200 (CEST) Received: (qmail 26491 invoked by uid 500); 4 Apr 2018 02:42:09 -0000 Mailing-List: contact dev-help@dubbo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@dubbo.apache.org Delivered-To: mailing list dev@dubbo.apache.org Received: (qmail 26478 invoked by uid 99); 4 Apr 2018 02:42:09 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2018 02:42:09 +0000 From: GitBox To: dev@dubbo.apache.org Subject: [GitHub] zonghaishang opened a new issue #1549: @EnableDubbo annotation throw No bean named 'xxx' available error Message-ID: <152280972911.12160.18366482083612622828.gitbox@gitbox.apache.org> Date: Wed, 04 Apr 2018 02:42:09 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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