公用的jar包
spring-boot-2.1.1.RELEASE.jar
spring-boot-autoconfigure-2.1.1.RELEASE.jar
spring-context-5.1.3.RELEASE.jar
junit-4.12.jar
spring-boot-test-2.1.1.RELEASE.jar
spring-test-5.1.3.RELEASE.jar
可直接去maven中央仓库下载
https://www.cnblogs.com/ityouknow/p/5662753.html
引入web模块
1、pom.xml中添加支持web的模块:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
pom.xml文件中默认有两个模块:
spring-boot-starter:核心模块,包括自动配置支持、日志和YAML;
spring-boot-starter-test:测试模块,包括JUnit、Hamcrest、Mockito。