The import org.springframework.context.support.ClassPathXmlApplicationContext cannot be resolved
来源:互联网 发布:截取串口数据代码 编辑:程序博客网 时间:2024/05/17 13:10
出现这个问题,首先问自己一个问题:是否在maven依赖中添加了spring-context,如果没有请添加,如果已经添加了那么可以继续往下看了。
今天遇到一个很奇怪的问题,命名在maven pom文件中添加了spring-context依赖,却仍然提示“The import org.springframework.context.support.ClassPathXmlApplicationContext cannot be resolved”的错误,左思右想无果后,想到在命令行输入mvn clean install -Dmaven.test.skip=true命令时找到了解决问题的方法:执行上述命令时出现如下提示:
[WARNING] 读取 spring-context-3.0.7.RELEASE.jar时出错; invalid LOC header (bad signature)导致
看到这里就不再兜关子了,出现上面这个问题,一般就是下载的maven包不完全所致,删除本地仓库中的spring-context:3.0.7包,然后重新下载即可,这里也是一个小技巧:有时我们在eclipse里面发现不了问题出在哪,那么此时通过执行mvn clean install -Dmaven.test.skip=true命令说不定就能找到解决方案!
阅读全文
0 0
- The import org.springframework.context.support.ClassPathXmlApplicationContext cannot be resolved
- The import org.springframework.test.context.junit4.SpringJUnit4ClassRunner cannot be resolved
- The type org.springframework.dao.support.DaoSupport cannot be resolved.
- The type org.springframework.dao.support.DaoSupport cannot be resolved.
- The type org.springframework.dao.support.DaoSupport cannot be resolved.
- The type org.springframework.context.ConfigurableApplicationContext cannot be resolved
- The import android.support cannot be resolved
- The import org.slf4j cannot be resolved
- [ssh ][异常]The type org.springframework.dao.support.DaoSupport cannot be resolved........
- The type org.springframework.orm.hibernate3.support.HibernateDaoSupport cannot be resolved. It is in
- The type org.springframework.dao.support.DaoSupport cannot be resolved
- The type org.springframework.dao.support.DaoSupport cannot be resolved. It is indirectly referenced
- 异常The type org.springframework.dao.support.DaoSupport cannot be resolved.
- The type org.springframework.dao.support.DaoSupport cannot be resolved. It is indirectly referenced
- The type org.springframework.dao.support.DaoSupport cannot be resolved. It is indirectly referenced
- The type org.springframework.core.io.support.ResourcePatternResolver cannot be resolved. It is ind
- The type org.springframework.dao.support.DaoSupport cannot be resolved. It is indirectly referenced
- The type org.springframework.dao.support.DaoSupport cannot be resolved. It is indirectly referenced
- Android-DeviceUtil及状态栏高度获取
- 使用0x3f3f3f3f表示无穷大
- java中的包装类型转换
- ViewPager+Fragment 懒加载学习笔记(一)
- oracle优化建议
- The import org.springframework.context.support.ClassPathXmlApplicationContext cannot be resolved
- 记录最近遇到的坑
- BootStrap FileInput 插件实现多文件上传前端功能
- spring面向切面编程
- linux记录锁(范围锁)
- HDU 6047 Maximum Sequence 贪心 区间最值
- Druid 连接池 JDBCUtils 工具类的使用
- hive支持sql大全(9-11:复合类型构建操作/复杂类型访问操作/复杂类型长度统计函数)
- django 多并发,多线程。