首页 > 解决方案 > 导入org.springframework 无法解决

问题描述

我是 Spring 框架的新手,我在 eclipse 上创建了一个新的 maven 项目,然后在pom.xml文件中添加了依赖项

<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-context</artifactId>
    <version>4.3.12.RELEASE</version>`
    <scope>runtime</scope>
</dependency>

当我尝试导入org.springframework.context.ApplicationContext我的 java 文件时,它无法解决org.springframework.

标签: springspring-bootmaven

解决方案


推荐阅读