标签:framework 问题 span repos 解决 image org pom boot
一、方式一:spring-boot-starter-parent
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.1.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>

进入spring-boot-starter-parent里,可以发现它其实依赖了我们下面要讲的spring-boot-dependencies模块 。
二、方式二:使用spring-boot-dependencies
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>2.2.1.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

【Spring Boot】Spring Boot之两种引入spring boot maven依赖的方式
标签:framework 问题 span repos 解决 image org pom boot
原文地址:https://www.cnblogs.com/756623607-zhang/p/12174018.html