父项目的依赖管理
每一个Spring Boot项目的Maven依赖中都具有一个父项目:
<parent>
<artifactId>spring-boot-starter-parent</artifactId>
<groupId>org.springframework.boot</groupId>
<version>2.4.2</version>
</parent>
引入的任何其他Spring Boot依赖的版本均参照父项目中的version
,因为在其父项目中对于Spring Boot的jar包依赖版本均有规定:
在IDEA中点击上述父项目中的spring-boot-starter-parent
查看该父项目的XML配置文件,其中包含一个父项目:
<parent>
<groupId>org.springframework.boot</groupId>
<