构建springboot项目有两种方式:
第一种是继承spring-boot-starter-parent
pom里面指定parent项目:
org.springframework.boot
spring-boot-starter-parent
2.3.5.RELEASE
[推荐,常用]第二种是通过dependencyManagement进行依赖管理
org.springframework.boot
spring-boot-dependencies
${spring-boot.version}
pom
import
共同点
这两种方式,我们在使用spring-boot-starter的时候都不需要指定版本;
Original: https://www.cnblogs.com/zouhong/p/16552523.html
Author: 小破孩楼主
Title: spring-boot-dependencies 和 spring-boot-starter-parent
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/541061/
转载文章受原作者版权保护。转载请注明原作者出处!