这是因为缺少依赖导致的,在pom中加入以下依赖即可
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
本文介绍了解决Spring Boot项目中因依赖缺失导致的问题。通过在pom.xml文件中添加spring-boot-starter-web依赖,可以有效解决由依赖问题引发的错误。
这是因为缺少依赖导致的,在pom中加入以下依赖即可
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
1739

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