Skip to content

Commit 9e2e1b9

Browse files
author
fishtailfu
committed
fix: add versioned echo interface
1 parent 24215dd commit 9e2e1b9

File tree

2 files changed

+2
-2
lines changed
  • dubbo-examples/dubbo-discovery-example

2 files changed

+2
-2
lines changed

dubbo-examples/dubbo-discovery-example/dubbo-quick-consumer/src/main/java/com/tencent/polaris/dubbo/discovery/example/consumer/GreetingServiceConsumer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class GreetingServiceConsumer {
2828
@DubboReference(loadbalance = "roundrobin")
2929
private GreetingService greetingService;
3030

31-
@DubboReference
31+
@DubboReference(version = "1.0.0")
3232
private EchoService echoService;
3333

3434
public String doSayHello(String name) {

dubbo-examples/dubbo-discovery-example/dubbo-quick-provider/src/main/java/com/tencent/polaris/dubbo/discovery/example/provider/AnnotatedEchoService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import com.tencent.polaris.dubbo.example.api.EchoService;
2121
import org.apache.dubbo.config.annotation.DubboService;
2222

23-
@DubboService
23+
@DubboService(version = "1.0.0")
2424
public class AnnotatedEchoService implements EchoService {
2525

2626
@Override

0 commit comments

Comments
 (0)