This is an automated email from the ASF dual-hosted git repository.
liujun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-samples.git
The following commit(s) were added to refs/heads/master by this push:
new 3ba1c7b fix context samples bean id (#414)
3ba1c7b is described below
commit 3ba1c7b94ccc2b17afb2689f4ae2002d9bfa9e10
Author: chen gang <[email protected]>
AuthorDate: Tue Jan 25 10:35:04 2022 +0800
fix context samples bean id (#414)
---
.../src/main/java/org/apache/dubbo/samples/context/ContextConsumer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/dubbo-samples-context/src/main/java/org/apache/dubbo/samples/context/ContextConsumer.java
b/dubbo-samples-context/src/main/java/org/apache/dubbo/samples/context/ContextConsumer.java
index cfa2eb8..36739e0 100644
---
a/dubbo-samples-context/src/main/java/org/apache/dubbo/samples/context/ContextConsumer.java
+++
b/dubbo-samples-context/src/main/java/org/apache/dubbo/samples/context/ContextConsumer.java
@@ -26,7 +26,7 @@ public class ContextConsumer {
public static void main(String[] args) {
ClassPathXmlApplicationContext context = new
ClassPathXmlApplicationContext("spring/dubbo-context-consumer.xml");
context.start();
- ContextService contextService = context.getBean("demoService",
ContextService.class);
+ ContextService contextService = context.getBean("contextService",
ContextService.class);
String hello = contextService.sayHello("world");
System.out.println("result: " + hello);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]