一、spring-boot-starter
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.4.RELEASE</version>
<relativePath/>
</parent>
1、概述
- Spring-boot场景启动器,后面跟的单词就是场景,比如说后面跟web,就是导入web场景的所有依赖。
- Spring Boot的版本仲裁中心
- Spring Boot的核心启动器,包含了自动配置、日志和YAML
2、作用
控制了所有依赖的版本号
3、好处
以后我们导入依赖默认是不需要写版本
二、spring-boot-starter-web
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
1、概述
- web的场景
2、作用
- 自动帮我们引入了web模块开发需要的相关jar包
三、spring-boot-starter-test
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
1、概述
springboot程序测试依赖,如果是自动创建项目默认添加