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

可能原因是没有在pom.xml中添加web依赖

添加:

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

猜你喜欢

转载自blog.csdn.net/qq_40604853/article/details/84325774