形式:选择无法从数据库检索数据

形式:选择无法从数据库检索数据,第1张

形式:选择无法从数据库检索数据

注意您的传递依存关系。 通过使用来自问题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 WSSpring 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>


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5641653.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-16
下一篇 2022-12-16

发表评论

登录后才能评论

评论列表(0条)

保存