当前位置:编程学习 > JAVA >>

spring 3急啊~~~

请问我使用spring3编译时出现这样的错误:The type org.springframework.core.NestedRuntimeException cannot be resolved. It is indirectly referenced from required .class files怎样解决啊?!! --------------------编程问答-------------------- 贴出报错的异常,你这个表述的太简单了

还有你的applicationContext.xml也拿出来看看 --------------------编程问答-------------------- 通常是spring的jar包没有包含到class路径中,我一般是这么解决的,我的是maven工程,先运行maven package,maven会下载所有需要的包到target的一个lib目录下,将这个lib拷贝到WEB-INF目录下,然后右键点击项目->属性,选择java build path->libraries,然后选择add jars,从里边选择刚才WEB-INF/lib目录下的所有jar包,一般多数类不能发现的问题都能解决了 --------------------编程问答-------------------- It is indirectly referenced from required .class files   》》》》缺少包 --------------------编程问答-------------------- Multiple markers at this line
- The type org.springframework.core.NestedRuntimeException cannot be resolved. It is 
 indirectly referenced from required .class files
- The type org.springframework.core.NestedRuntimeException cannot be resolved. It is 
 indirectly referenced from required .class files
--------------------编程问答-------------------- 同样的问题:求解答
jar包中有一个inferface:
IbatisDao()
也有具体的实现
IbatisDaoImpl()

我要做的是引用这个jar包
自己实现ibatisDaoImpl这个类!!!
把jar包用eclipse导入后,第一行 package XXX.XXX.XXX 会报错!! --------------------编程问答-------------------- org.springframework.core.NestedRuntimeException
在org.springframework.core-3.0.5.RELEASE.jar中,导入就好了 --------------------编程问答-------------------- 根据你的异常,应该是少包了。
补充:Java ,  Web 开发
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,