idea创建springboot项目
Maven创建
Pom 中添加父项目
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.1.RELEASE</version>
</parent>
Spring boot 版本仲裁中心(以后写依赖不需要写版本号)
添加springboot web场景的启动器,帮我们导入了web模块正常运行的组件
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependencies>
使用Springinitializer向导快速创建springboot项目
勾选需要的功能
建好后的resources文件夹中