[英]Where are the versions of the other spring modules specified in the pom file of spring-data-redis 2.6.1
[英]Errors in pom file spring versions
我在这里上传了我的pom文件
https://www.dropbox.com/s/ryuetva8gintpf5/pom.xml?dl=0
我看到很多奇怪的错误,其中一个是web.xml中的Multiple ContextLoader定义 ,我想知道我的Spring版本在内核,mvc,安全性等之间是否存在不匹配,这是造成此错误的原因。 我不太了解哪个版本与哪个版本兼容,因此如果有人可以查看我的pom文件并让我知道pom.xml是否存在任何兼容性问题会很好,那我就不会太了解。
请只复制粘贴您的pom.xml
到这里,它将更易于检查。
实际上,您可以使用spring initializr来节省管理spring依赖项的时间,但是从pom.xml
我发现了一个错误,您使用变量初始化了依赖项版本,但我可以看到您声明了变量名。
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${spring.version}</version>
</dependency>
因此,您可以在<properties>
定义变量名称。
<properties>
<spring.version>4.2.4.RELEASE</spring.version>
</properties>
或者,您可以像这样声明您的春季版本。
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>4.2.4.RELEASE</version>
</dependency>
我的建议选择一种方法,并为了易于维护而跟上它
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.