1. 进入spring boot 官网 点击打开链接
2. 将下载好的demo 导入maven工程
3. 等待maven 下载相关jar包 下载完成后 在pom.xml 中引入 web 模块
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
5. run as DemoApplication类 启动成功后 访问http:localhost:8080/hello 一个基本的 基于web 的 spring boot 项目就搞定了