spring中出现的错误:The import org.springframework cannot be resolved
来源:互联网 发布:算法好难 编辑:程序博客网 时间:2024/06/03 22:58
用myeclipse+maven环境,做spring+mybatis测试的时候遇到的。
错误:The import org.springframework cannot be resolved
关于这个错误,从字面意思上看属于有的包没有导入。于是在网上查找需要导入哪个包,说什么的都有,但是找到了个靠谱的 参考
下面是感觉重要的摘了下来:
注意:SpringJUnit4ClassRunner这个类是位于spring-test-4.1.6.RELEASE.jar这个包中的
解决办法是在pom.xml文件中添加依赖,代码如下:
阅读全文
0 0
- spring中出现的错误:The import org.springframework cannot be resolved
- The import org.springframework.context.support.ClassPathXmlApplicationContext cannot be resolved
- Myeclipse导入web项目时错误:The import org.springframework.orm cannot be resolved
- Spring中,在继承JdbcDaoSupport时,出现The type org.springframework.dao.support.DaoSupport cannot be resolved.
- spring错误 org.springframework.dao.DataAccessException cannot be resolved
- Spring错误:The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly r
- The import org.cocos2dx.lib cannot be resolved错误解决方法
- Cocos2d-x 导入到Eclipse后出现The import org.cocos2dx.lib cannot be resolved错误
- The import org.slf4j cannot be resolved
- Spring 3.0.6 Aspectj的配置和使用 The import org.aspectj cannot be resolved
- The import org.springframework.test.context.junit4.SpringJUnit4ClassRunner cannot be resolved
- 出现The import javax.servlet cannot be resolved 的解决方法
- 出现The import javax.servlet cannot be resolved 的解决方法
- 错误:The import XXX cannot be resolved
- Cocos2d-x 3.2导入到Eclipse后出现The import org.cocos2dx.lib cannot be resolved错误
- Cocos2d-x 3.2导入到Eclipse后出现The import org.cocos2dx.lib cannot be resolved错误
- Cocos2d-x 3.x项目导Eclipse出现 The import org.cocos2dx.lib cannot be resolved错误
- 关于 “The import junit cannot be resolved”的提示错误
- HDU-2044
- Unicode for emoji(reference)
- HDU-2084
- 如何自建网站(1)
- session内置对象
- spring中出现的错误:The import org.springframework cannot be resolved
- 广联达线下笔试题
- 01scala语法
- Android加载按键文件流程
- 消息推送 HTML5 + swoole websocket server
- 排列组合公式
- kafka与zookeeper单机集群搭建
- CentOS6.5环境下编译安装MySQL5.6.23
- matlab如何配置libsvm