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>

posted @ 2020-03-07 11:06  雪缘a_a  阅读(3911)  评论(0编辑  收藏  举报