1.手工创建:https://projects.spring.io/spring-boot/#quick-start 找到依赖包及运行项目代码
<parent>
<groupId>org.springframework.book</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.1.RELEASE</version>
</parent>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependencies>
访问地址:localhost:8080
2.官方文档:https://docs.spring.io/spring-boot/docs/2.1.0.BUILD-SNAPSHOT/
reference/htmlsingle/#using-boot-using-the-default-package