Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is Reference support the annotation #155

Closed
liyong6351 opened this issue Jun 1, 2018 · 2 comments
Closed

Is Reference support the annotation #155

liyong6351 opened this issue Jun 1, 2018 · 2 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@liyong6351
Copy link

Today I am use @reference to inject the dubbo reference, codes like this

@Reference(group = "${dubbo.consumer.social.group}",version = "${dubbo.consumer.social.version}")
private ActivityDubboService activityDubboService;

config like this:
dubbo.consumer.group=uum-service-dev
dubbo.consumer.version=9.0.0
dubbo.consumer.social.group=social-test
dubbo.consumer.social.version=1.0.0

But when the project started,I find that the reference always use the default configuration,shown on the dubbo adminstrator interface:
uum-service-dev/ActivityDubboService:9.0.0

Is there something wrong with myself or the framework?

@mercyblitz
Copy link
Contributor

Let me check

@mercyblitz mercyblitz self-assigned this Jul 8, 2018
@mercyblitz mercyblitz added this to the 0.1.2 & 0.2.1 milestone milestone Jul 8, 2018
@mercyblitz mercyblitz added the help wanted Extra attention is needed label Jul 8, 2018
@mercyblitz
Copy link
Contributor

Please add dependencies in your Maven pom.xml, like this:

<!-- Dubbo -->
<dependency>
    <groupId>com.alibaba</groupId>
    <artifactId>dubbo</artifactId>
    <version>2.6.5</version>
</dependency>
<!-- Spring Context Extras -->
<dependency>
    <groupId>com.alibaba.spring</groupId>
    <artifactId>spring-context-support</artifactId>
    <version>1.0.2</version>
</dependency>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants