说明:跟踪(ctrl+(mouse-left)) <artifactId>spring-boot-dependencies</artifactId>
1.查看springboot各种依赖的版本
步骤:
1.pom.xml
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>2.2.1.RELEASE</version>
<relativePath>../../spring-boot-dependencies</relativePath>
</parent>
2.spring-boot-starter-parent-2.x.x.release.pom
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.1.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
3.spring-boot-dependencies-2.x.x.release.pom
//文件中这部分就是,sringboot 依赖的各种框架的版本
<properties>
....
<xml-maven-plugin.version>1.0.2</xml-maven-plugin.version>
<xmlunit2.version>2.6.3</xmlunit2.version>
.....
</properties>
2.查看spring-boot-starter-web场景都依赖那些东西,springboot将所有的功能场景都抽取出来做成一个个的starters(启动器),只要引入启动器相关场景的依赖都会引入进来
1.pom.xml
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId> <!--跟踪-->
</dependency>
</dependencies>
2.spring-boot-starter-web-2.x.x.release.pom
//它所依赖的东西就都在这里了
<dependencies>
....
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<version>2.2.1.RELEASE</version>
<scope>compile</scope>
</dependency>
....
</dependencies>