spring框架bom和平台bom之间有什么区别?

spring框架bom和平台bom之间有什么区别?,spring,maven,Spring,Maven,我一直在试验Spring BOM,注意有两个构建管理器——Spring框架BOM和平台BOM <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-framewor

我一直在试验Spring BOM,注意有两个构建管理器——Spring框架BOM和平台BOM

<dependencyManagement>
    <dependencies>
            <dependency> 
                <groupId>org.springframework</groupId> 
                <artifactId>spring-framework-bom</artifactId> 
                <version>${spring.version}</version> 
                <type>pom</type> 
                <scope>import</scope> 
            </dependency> 
        </dependencies> 
</dependencyManagement>

org.springframework
spring框架bom表
${spring.version}
聚甲醛
进口


io.spring.platform
平台物料清单
1.1.2.1发布
聚甲醛
进口

有什么区别?还是spring框架bom已经被取代?就我个人而言,我更喜欢spring框架bom方法,因为我可以控制spring版本?

上周我对这个问题进行了研究,正如M Deinum所说的,区别在于spring框架bom只是用于框架。然后,我提出了一个问题,即如果使用平台bom,如何控制spring版本

答案是检查spring版本的spring引导依赖项项目-

各版本摘要如下:

Spring平台BOM版本Spring版本 1.1.2.4.2.0版RC1
1.1.0.发布4.1.3.发布 1.0.0.RELEASE 4.0.5.RELEASE

参考文献-


spring框架bom表仅适用于spring框架。io.spring.platform包含更多(大多数spring项目组合)的版本,这些版本一起测试并一起工作。您仍然可以控制spring版本,使用io.spring.platform作为父级,并添加一个
spring.version
属性。我通常看到BOM(BOM表)与dependencyManagement标记一起使用,它包装了整个Dependencies标记。M。Deinum如何指定spring.version?我在网上进行了检查,没有看到任何示例GitHub链接已断开。GitHub上的Spring Boot Dependencies POM:
<dependencyManagement>
     <dependencies>
        <dependency>
            <groupId>io.spring.platform</groupId>
            <artifactId>platform-bom</artifactId>
            <version>1.1.2.RELEASE</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>