官方文档:构建第一个SpringBoot应用
构建项目
创建一个Maven项目
pom.xml 文件 添加依赖
<!-- springboot启动器-->
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.12.RELEASE</version>
</parent>
<!-- web 场景启动器依赖-->
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>