“Spring Boot 依赖管理特性”的版本间的差异

来自姬鸿昌的知识库
跳到导航 跳到搜索
第8行: 第8行:
 
         <version>2.3.4.RELEASE</version>
 
         <version>2.3.4.RELEASE</version>
 
     </parent>
 
     </parent>
 +
</syntaxhighlight>spring-boot-starter-parent-2.3.4.RELEASE.pom<syntaxhighlight lang="xml">
 +
  <parent>
 +
    <groupId>org.springframework.boot</groupId>
 +
    <artifactId>spring-boot-dependencies</artifactId>
 +
    <version>2.3.4.RELEASE</version>
 +
  </parent>
 +
  <artifactId>spring-boot-starter-parent</artifactId>
 +
  <packaging>pom</packaging>
 +
  <name>spring-boot-starter-parent</name>
 
</syntaxhighlight>
 
</syntaxhighlight>

2023年2月1日 (三) 06:51的版本

https://www.bilibili.com/video/BV19K4y1L7MT/?p=6

父项目做依赖管理

boot-01-helloworld - pom.xml

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.3.4.RELEASE</version>
    </parent>

spring-boot-starter-parent-2.3.4.RELEASE.pom

  <parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-dependencies</artifactId>
    <version>2.3.4.RELEASE</version>
  </parent>
  <artifactId>spring-boot-starter-parent</artifactId>
  <packaging>pom</packaging>
  <name>spring-boot-starter-parent</name>