What is JavaConfigApplicationContext class address in maven artifacts?
Can't find it in neither 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>
In Spring 4.2.0, in order to create an instance of ApplicationContext
from @Configuration
-annotated class use:
ApplicationContext context = new AnnotationConfigApplicationContext(MyConfig.class);
Please see this answer for reasons why JavaConfigApplicationContext
does not exist anymore.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With