Skip to content

Commit

Permalink
Fix wrong sample code : (#761)
Browse files Browse the repository at this point in the history
@service ====>  @DubboService
@reference   ====>  @DubboReference

Co-authored-by: 李大成 <[email protected]>
  • Loading branch information
JackyKyoto and 李大成 committed Dec 14, 2020
1 parent c1ff0a2 commit 5b35e74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

/**
Expand Down Expand Up @@ -197,15 +197,15 @@ public interface DemoService {
### 实现 Dubbo 服务消费方


1. 通过 `@Reference` 注入 `DemoService` :
1. 通过 `@DubboReference` 注入 `DemoService` :

```java
@EnableAutoConfiguration
public class DubboAutoConfigurationConsumerBootstrap {

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) {
Expand Down

0 comments on commit 5b35e74

Please sign in to comment.