【发布时间】:2016-11-24 13:28:40
【问题描述】:
我不明白 bom 对象的目的是什么?我正在使用 Spring 3.2.8 版本和 JBoss 服务器,那么我需要使用哪个 bom 依赖项?当我在 pom.xml 中提到以下依赖项时:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-framework-bom</artifactId>
<version>4.0.1.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
jar 文件是否会下载到我的 Maven 依赖项中?
【问题讨论】:
-
文档回答了您的问题:Maven "Bill Of Materials" Dependency。如果你想使用 Spring 3.2.8,那么显然你需要为 Spring 3.2.8 而不是 Spring 4.0.1 导入 POM...
-
感谢您的回复,实际上我的应用程序在 tomcat web 服务器上运行良好,现在我必须在 JBoss 服务器上运行。我想做出哪些改变?在配置和依赖方面?
标签: java spring maven dependencies pom.xml