SpringBoot 启动出现如下情景,是因为项目中未引用spring-boot-starter-web导致

只需在pom文件中引用如下架包即可
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
本文解析了SpringBoot项目启动时遇到的问题,原因是缺少spring-boot-starter-web依赖。解决方法是在pom文件中加入该依赖。
SpringBoot 启动出现如下情景,是因为项目中未引用spring-boot-starter-web导致

只需在pom文件中引用如下架包即可
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>

被折叠的 条评论
为什么被折叠?