Skip to content

Commit

Permalink
Update @service And @reference with @DubboService and @DubboReference (
Browse files Browse the repository at this point in the history
  • Loading branch information
laddcn committed Jul 8, 2020
1 parent 44345d5 commit f798140
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -16,7 +16,7 @@
*/
package org.apache.dubbo.demo.consumer.comp;

import org.apache.dubbo.config.annotation.Reference;
import org.apache.dubbo.config.annotation.DubboReference;
import org.apache.dubbo.demo.DemoService;

import org.springframework.stereotype.Component;
Expand All @@ -25,7 +25,7 @@

@Component("demoServiceComponent")
public class DemoServiceComponent implements DemoService {
@Reference
@DubboReference
private DemoService demoService;

@Override
Expand Down
Expand Up @@ -16,7 +16,7 @@
*/
package org.apache.dubbo.demo.provider;

import org.apache.dubbo.config.annotation.Service;
import org.apache.dubbo.config.annotation.DubboService;
import org.apache.dubbo.demo.DemoService;
import org.apache.dubbo.rpc.RpcContext;

Expand All @@ -25,7 +25,7 @@

import java.util.concurrent.CompletableFuture;

@Service
@DubboService
public class DemoServiceImpl implements DemoService {
private static final Logger logger = LoggerFactory.getLogger(DemoServiceImpl.class);

Expand Down

0 comments on commit f798140

Please sign in to comment.