Skip to content
Permalink
Browse files
fix context samples bean id (#414)
  • Loading branch information
codeimport committed Jan 25, 2022
1 parent de3b882 commit 3ba1c7b94ccc2b17afb2689f4ae2002d9bfa9e10
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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);

0 comments on commit 3ba1c7b

Please sign in to comment.