You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by hy...@apache.org on 2019/06/21 09:14:55 UTC

[dubbo-samples] branch master updated: Fix dubbo-samples-annotation readme (#94)

This is an automated email from the ASF dual-hosted git repository.

hyunkun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-samples.git


The following commit(s) were added to refs/heads/master by this push:
     new 0a6f78c  Fix dubbo-samples-annotation readme (#94)
0a6f78c is described below

commit 0a6f78c78a25597d87a4ef7b36dabc6c8708bca4
Author: shalk(xiao kun) <xs...@163.com>
AuthorDate: Fri Jun 21 17:14:49 2019 +0800

    Fix dubbo-samples-annotation readme (#94)
---
 {dubbo-samples-api-client => dubbo-samples-annotation}/README.md | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dubbo-samples-api-client/README.md b/dubbo-samples-annotation/README.md
similarity index 73%
rename from dubbo-samples-api-client/README.md
rename to dubbo-samples-annotation/README.md
index 89ce395..fabf4a3 100644
--- a/dubbo-samples-api-client/README.md
+++ b/dubbo-samples-annotation/README.md
@@ -6,13 +6,13 @@ First, there have to be an overall configuration of provider:
 
 ```Java
 @Configuration
-@EnableDubbo(scanBasePackages = oorg.apache.dubbo.samples.annotation.implation.impl)
+@EnableDubbo(scanBasePackages = "org.apache.dubbo.samples.annotation.impl")
 @PropertySource("classpath:/spring/dubbo-provider.properties")
 static class ProviderConfiguration {
 }
 ``` 
 
-`@EnableDubbo` will enable Spring org.apache.dubbo.samples.annotation.implples.impl` package to find anything annotated by Dubbo annotation.
+`@EnableDubbo` will enable Spring `org.apache.dubbo.samples.annotation.impl` package to find anything annotated by Dubbo annotation.
 
 As a provider, the interface implementation class have to be annotated by `@Service`:
 
@@ -34,9 +34,9 @@ The overall configuration for consumer is very smilier to provider's:
 
 ```Java
 @Configuration
-@EnableDubbo(scanBasePackages = oorg.apache.dubbo.samples.annotation.actionion.action)
+@EnableDubbo(scanBasePackages = "org.apache.dubbo.samples.annotation.action")
 @PropertySource("classpath:/spring/dubbo-consumer.properties")
-@ComponentScan(vorg.apache.dubbo.samples.annotation.actions.annotation.action})
+@ComponentScan(value = {"org.apache.dubbo.samples.annotation.action"})
 static class ConsumerConfiguration {
 
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org