关于几个boot 自带的几个maven依赖的说明
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
------
主要是包含以下内容
<description>Core starter, including auto-configuration support, logging and YAML</description>
这个依赖中主要是关于boot的核心jar,spring核心jar,自动配置的相关的jar,以及日志,注解,yaml相关的类库
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.6.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
spring-boot-starter-parent 是一个特殊的starter,它用来提供相关的Maven默认依赖。使用它之后,常用的包依赖可以省去version标签
**到这里为止,你可以看到没有丝毫和web开发相关的东西的,辣么你想启动web应用必然是;不报错,启动不了的
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
加上这个依赖就可以正常启动了