SpringBoot项目报错the import org.springframework.web.*cannot be resolved

可能原因1: pom.xml中没有添加web依赖

添加:

<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
</dependency>

猜你喜欢

转载自www.cnblogs.com/icemargin/p/12433091.html