一、第一种继承spring-boot-starter-parent
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.13.RELEASE</version>
</parent>
二、第二种导入spring-boot-dependencies
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>2.2.13.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
原文连接
https://blog.youkuaiyun.com/yyqhwr/article/details/89931129
本文介绍了两种Spring Boot项目的依赖管理方式:一种是通过继承spring-boot-starter-parent来统一管理依赖版本;另一种是导入spring-boot-dependencies进行依赖版本管理。这两种方式能够帮助开发者简化Maven配置并确保版本一致性。
396

被折叠的 条评论
为什么被折叠?



