Browse Source

Fix typo in reference manual

pull/25585/head
Sam Brannen 4 years ago
parent
commit
1dcaa04224
  1. 4
      src/docs/asciidoc/languages/dynamic-languages.adoc

4
src/docs/asciidoc/languages/dynamic-languages.adoc

@ -480,9 +480,9 @@ Finally, the following small application exercises the preceding configuration: @@ -480,9 +480,9 @@ Finally, the following small application exercises the preceding configuration:
public class Main {
public static void Main(String[] args) {
public static void main(String[] args) {
ApplicationContext ctx = new ClassPathXmlApplicationContext("beans.xml");
Calculator calc = (Calculator) ctx.getBean("calculator");
Calculator calc = ctx.getBean("calculator", Calculator.class);
System.out.println(calc.add(2, 8));
}
}

Loading…
Cancel
Save