依赖管理
父项目统一管理依赖
每一个SpringBoot 项目都有一个父项目,用于依赖管理,所有的依赖版本在父项目中声明,子项目引入依赖无需声明版本号。
<!-- springboot启动器-->
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.12.RELEASE</version>
</parent>
spring-boot-starter-parent 的父项目
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>