产生背景 产生原因 缺少依赖项 解决方案 (1)在pom.xml中添加依赖项 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> (2)更新maven包