commit | 3ba1c7b94ccc2b17afb2689f4ae2002d9bfa9e10 | [log] [tgz] |
---|---|---|
author | chen gang <516673669@qq.com> | Tue Jan 25 10:35:04 2022 +0800 |
committer | GitHub <noreply@github.com> | Tue Jan 25 10:35:04 2022 +0800 |
tree | 88ae7b001625bd927422cd849c29d7c22f277a01 | |
parent | de3b8823e4256df4c34cc5bc946e5ae3e2b36efa [diff] |
fix context samples bean id (#414)
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 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);