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

JAVA学习网 2020-03-08 00:17:01

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

添加:

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

阅读(2354) 评论(0)