Spring BOM对发布和依赖的方法如何工作?

时间:2017-05-10 03:00:16

标签: java spring maven

我对Maven和JVM相对较新,我很好奇Spring的发布方法是如何实现的?什么是BOM?

例如,Spring Cloud页面显示Use your dependency management tools to control the version. If you are using Maven remember that the first version declared wins, so declare the BOMs in order, with the first one usually being the most recent (e.g. if you want to use Spring Boot 1.3.6 with Brixton.RELEASE, put the Boot BOM first).

有人能举例说明这在实践中意味着什么吗?

1 个答案:

答案 0 :(得分:0)

您检测到了Dependency Management的Maven概念。 Maven文档很好地说明了这个概念。您还可以在Maven文档中找到关于 B 生病 O M aterials (BOM)的信息。< / p>

简而言之,BOM定义了依赖关系(带有版本),导入此BOM的项目将从BOM中获取它们所依赖的atrifacts的版本信息。因此,BOM可以确保将一组依赖关系用于兼容&#34;的版本。彼此。