You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by il...@apache.org on 2019/03/26 06:59:37 UTC
[incubator-dubbo-samples] branch master updated: polish code
This is an automated email from the ASF dual-hosted git repository.
iluo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo-samples.git
The following commit(s) were added to refs/heads/master by this push:
new 94fb5ed polish code
94fb5ed is described below
commit 94fb5edf6ce6e129b1858e6495c8a2be23ebe533
Author: Ian Luo <ia...@gmail.com>
AuthorDate: Tue Mar 26 14:59:17 2019 +0800
polish code
---
.../src/main/java/org/apache/dubbo/samples/stub/StubConsumer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dubbo-samples-stub/src/main/java/org/apache/dubbo/samples/stub/StubConsumer.java b/dubbo-samples-stub/src/main/java/org/apache/dubbo/samples/stub/StubConsumer.java
index 2040ce3..38dab6f 100644
--- a/dubbo-samples-stub/src/main/java/org/apache/dubbo/samples/stub/StubConsumer.java
+++ b/dubbo-samples-stub/src/main/java/org/apache/dubbo/samples/stub/StubConsumer.java
@@ -28,7 +28,7 @@ public class StubConsumer {
public static void main(String[] args) {
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring/stub-consumer.xml");
context.start();
- DemoService demoService = (DemoService) context.getBean("demoService");
+ DemoService demoService = context.getBean("demoService", DemoService.class);
demoService.sayHello("dubbo");
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org