Where is the JavaConfigApplicationContext class now?

What is the address of the JavaConfigApplicationContext class in maven artifacts?

Unable to find it in any of

<dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>4.2.0.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>4.2.0.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context-support</artifactId> <version>4.2.0.RELEASE</version> </dependency> 
+6
source share
1 answer

In Spring 4.2.0, to create an instance of ApplicationContext from the @Configuration class @Configuration change:

 ApplicationContext context = new AnnotationConfigApplicationContext(MyConfig.class); 

See this answer for reasons why JavaConfigApplicationContext no longer exists.

+21
source

All Articles