Error:
Solution:
pom.xml
Before
After
13:49:18,932 ERROR [ContextLoader] Context initialization failed java.lang.NoSuchMethodError: org.springframework.context.support .AbstractRefreshableConfigApplicationContext.getEnvironment() Lorg/springframework/core/env/ConfigurableEnvironment; at org.springframework.web.context.support. AbstractRefreshableWebApplicationContext .getEnvironment(AbstractRefreshableWebApplicationContext.java:146) at org.springframework.web.context.support .XmlWebApplicationContext.loadBeanDefinitions (XmlWebApplicationContext.java:87)
Solution:
pom.xml
<dependency> <groupId>org.springframework</groupId> <artifactId>spring-aop</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context-support</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-oxm</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-jdbc</artifactId> <version>${spring.version}</version> </dependency>
Before
After