注意您的传递依存关系。 通过使用来自问题and的信息
mvn dependency:tree,我得到的是:
+- org.springframework:spring-context:jar:4.0.3.RELEASE:compile| +- org.springframework:spring-aop:jar:4.0.3.RELEASE:compile| +- org.springframework:spring-beans:jar:4.0.3.RELEASE:compile| +- org.springframework:spring-core:jar:4.0.3.RELEASE:compile| - org.springframework:spring-expression:jar:4.0.3.RELEASE:compile+- org.springframework.security:spring-security-web:jar:3.2.3.RELEASE:compile| +- aopalliance:aopalliance:jar:1.0:compile| +- org.springframework.security:spring-security-core:jar:3.2.3.RELEASE:compile| - org.springframework:spring-web:jar:3.2.8.RELEASE:compile+- org.springframework.security:spring-security-config:jar:3.2.3.RELEASE:compile+- org.springframework.security:spring-security-taglibs:jar:3.2.3.RELEASE:compile| - org.springframework.security:spring-security-acl:jar:3.2.3.RELEASE:compile+- org.springframework.ws:spring-ws-core:jar:2.1.4.RELEASE:compile| +- org.springframework.ws:spring-xml:jar:2.1.4.RELEASE:compile| +- org.springframework:spring-oxm:jar:3.2.4.RELEASE:compile| +- org.springframework:spring-webmvc:jar:3.2.4.RELEASE:compile| +- wsdl4j:wsdl4j:jar:1.6.1:compile| +- javax.xml.stream:stax-api:jar:1.0-2:compile| - commons-logging:commons-logging:jar:1.1.1:compile+- org.springframework:spring-orm:jar:4.0.3.RELEASE:compile| - org.springframework:spring-jdbc:jar:4.0.3.RELEASE:compile- org.springframework:spring-tx:jar:4.0.3.RELEASE:compile
您可以看到,较旧的 Spring WS 和 Spring Security 版本也拉扯了一些旧的 Spring framework
依赖项。我强烈建议在
<dependencyManagement>您的POM中添加部分,并将这些依赖项强制为4.0.3:
<dependencyManagement> <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-web/artifactId> <version>4.0.3.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-oxm</artifactId> <version>4.0.3.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>4.0.3.RELEASE</version> </dependency> </dependencies></dependencyManagement>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)