diff --git a/spring-framework-reference/src/beans.xml b/spring-framework-reference/src/beans.xml index 50c1c33bfad64a33f6356f85eae21fda9305f3c9..512d7c79946a4be227dc2316bacf0941ac194cbe 100644 --- a/spring-framework-reference/src/beans.xml +++ b/spring-framework-reference/src/beans.xml @@ -5665,7 +5665,7 @@ The above assumes that MyServiceImpl, Dependency1AnnotationConfigApplicationContext. public static void main(String[] args) { - ApplicationContext ctx = new AnnotationConfigApplicationContext(); + AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(); ctx.register(AppConfig.class, OtherConfig.class); ctx.register(AdditionalConfig.class); ctx.refresh(); @@ -5690,7 +5690,7 @@ The above assumes that MyServiceImpl, Dependency1AnnotationConfigApplicationContext exposes the scan(String...) method to allow for the same component-scanning functionality:public static void main(String[] args) { - ApplicationContext ctx = new AnnotationConfigApplicationContext(); + AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(); ctx.scan("com.acme"); ctx.refresh(); MyService myService = ctx.getBean(MyService.class);