写在开始:一个搬砖程序员的随缘记录
两种快速搭建SpringBoot项目的方式
第一种:访问SpringBoot项目生成网页生成
一:创建项目
1、打开SpringBoot项目生成页面生成项目
2、解压生成好的.zip压缩文件放到合适的路径
3、导入项目

4、选择刚才解压的项目路径
5、next

6、配置JDK
7、项目名和项目路径
8、注意:如果项目没启动起来,需要在pom.xml中加入
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web-services</artifactId>
</dependency>
第二种:通过IDEA创建项目
一、创建项目
1、打开IDEA,选择Create New Project

2、选择Spring Initializr和对应的sdk版本
3、写入项目名和包名
4、选择需要的依赖
5、写入项目名称和项目路径
项目配置
两种创建Spring Boot项目都是一样的,都能得到以下项目结构
1、maven加载和项目的简化
2、加入测试类和测试方法,启动项目
3、访问:localhost:8080/demo
4、Hello Word!!!
Over