我正在尝试将
Spring 4.0.1.RELEASE升级到最新的Spring版本5.0.6.RELEASE.在我的pom.xml中更改版本后,它显示错误
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/spring/appServlet/servlet-context.xml]; nested exception is java.lang.NoSuchMethodError: org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.getEnvironment()Lorg/springframework/core/env/Environment;
它与4.0.1.RELEASE完美配合.
我的pom.xml:
1.8
5.0.6.RELEASE
1.6.10
1.6.6
org.springframework
spring-context
${org.springframework-version}
commons-logging
commons-logging
org.springframework
spring-beans
${org.springframework-version}
org.springframework
spring-webmvc
${org.springframework-version}
joda-time
joda-time
2.3
org.springframework.security
spring-security-core
3.1.3.RELEASE
org.springframework.security
spring-security-web
3.1.3.RELEASE
org.springframework.security
spring-security-config
3.1.3.RELEASE
org.springframework.security
spring-security-taglibs
3.1.3.RELEASE
和servletContext.xml:
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
xmlns:c='http://www.springframework.org/schema/c' xmlns:mongo="http://www.springframework.org/schema/data/mongo"
xmlns:beans="http://www.springframework.org/schema/beans" xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:ldap="http://www.springframework.org/schema/ldap" xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/data/mongo
http://www.springframework.org/schema/data/mongo/spring-mongo.xsd http://www.springframework.org/schema/ldap http://www.springframework.org/schema/ldap/spring-ldap.xsd">
我错过了什么?