1.1.打开idea创建工程:
File-New-Project

输入包名和项目名 ,点击 next

这里可以不选,习惯性的选一个web

创建成功后目录结构

1.2对应的pom.xml文件:
<?xml version="1.0" encoding="UTF-8"?>4.0.0org.springframework.boot spring-boot-starter-parent 2.2.7.RELEASEcom.firstwave sf-springboot 0.0.1-SNAPSHOTsf-springbootDemo project for Spring Boot1.8org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-test testorg.junit.vintage junit-vintage-engine org.springframework.boot spring-boot-maven-plugin
1.3配置文件
在配置文件application.properties指定一个启动端口
server.port=8888

1.4启动成功后控制台:

对,就是这么简单!