You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by ki...@apache.org on 2020/12/14 09:56:03 UTC

[dubbo-spring-boot-project] branch master updated: Fix wrong sample code : (#761)

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

kimmking pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-spring-boot-project.git


The following commit(s) were added to refs/heads/master by this push:
     new 5b35e74  Fix wrong  sample code : (#761)
5b35e74 is described below

commit 5b35e74ff5f688ff6bee24865ac961379bf9b511
Author: JackyKyoto <51...@users.noreply.github.com>
AuthorDate: Mon Dec 14 17:55:50 2020 +0800

    Fix wrong  sample code : (#761)
    
    @Service ====>  @DubboService
    @Reference   ====>  @DubboReference
    
    Co-authored-by: 李大成 <li...@fxiaoke.com>
---
 README_CN.md | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/README_CN.md b/README_CN.md
index 8d7b3eb..53a4d87 100644
--- a/README_CN.md
+++ b/README_CN.md
@@ -141,7 +141,7 @@ public interface DemoService {
 1. 实现 `DemoService` 接口
 
     ```java
-    @Service(version = "1.0.0")
+    @DubboService(version = "1.0.0")
     public class DefaultDemoService implements DemoService {
     
         /**
@@ -197,7 +197,7 @@ public interface DemoService {
 ### 实现 Dubbo 服务消费方
 
 
-1. 通过 `@Reference` 注入 `DemoService` :
+1. 通过 `@DubboReference` 注入 `DemoService` :
 
     ```java
     @EnableAutoConfiguration
@@ -205,7 +205,7 @@ public interface DemoService {
     
         private final Logger logger = LoggerFactory.getLogger(getClass());
     
-        @Reference(version = "1.0.0", url = "dubbo://127.0.0.1:12345")
+        @DubboReference(version = "1.0.0", url = "dubbo://127.0.0.1:12345")
         private DemoService demoService;
     
         public static void main(String[] args) {