Spring错误:The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly r

spring错误:

The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly referenced from required .class files

解释:
org.springframework.dao.DataAccessException该类型不存在,不能从请求的.class文件中正确引用,应该是导入包的问题

解决方法:

导入spring.transaction-3.0.5.jar 包就好了。

Spring3.0.5jar包用法详解:http://wxinpeng.iteye.com/blog/1114967

版权声明:本文为博主原创文章,未经博主允许不得转载。

时间: 2024-10-15 19:17:27

Spring错误:The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly r的相关文章

The type org.springframework.dao.support.DaoSupport cannot be resolved. It is indirectly referenced

springmvc mybatis整合,遇到错误:The type org.springframework.dao.support.DaoSupport cannot be resolved. It is indirectly referenced 缺依赖包导致,在pom.xml加入依赖 <dependency> <groupId>org.springframework</groupId> <artifactId>org.springframework.tr

org.springframework.dao.DataAccessException not found

这个在Spring3.0里面隐藏的可是够深啊,出现classnotfound异常,却不知道这个东西在哪个包里.其实,它就在org.springframework.transaction-3.0.0.RELEASE.jar这个里面了.org.springframework.dao.DataAccessException not found

Java微信开发_Exception_01_The type org.xmlpull.v1.XmlPullParser cannot be resolved. It is indirectly referenced from required .class files

一.源码: package com.souvc.weixin.util; import java.io.InputStream; import java.io.Writer; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import org.dom4j.Document; import org.dom4j.E

The type javax.xml.rpc.ServiceException cannot be resolved.It is indirectly

The type javax.xml.rpc.ServiceException cannot be resolved.It is indirectly 博客分类: 解决方案_Java 问题描述:The type javax.xml.rpc.ServiceException cannot be resolved.It is indirectly…… 还加了一个错误提示:the hierarchy of the type is inconsistent 原因:缺少jaxrpc.jar包 解决方案:导

The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files

JDK版本的问题. 解决方法: 原来jdk1.8不向下兼容,用回1.6的就可以了. 下图有三个jdk,前两个自己装的,第三个MyEclipse自带的.

The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from

原因:项目中缺少servlet-api.jar文件. 解决办法:将D:/Program Files/Apache Software Foundation/Tomcat 5.5/common/lib下的servlet-api.jar拷贝到项目中,然后编译即可.

The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from required .class files

我的方法:是缺少servlet的引用库,解决如下 1.工程右键-properties->java build path 2.在java build path的libraries tab页中选择Add external Jars...按钮.server runtime -->next--->选择你要选用的tomcat即可问题解决了.网上别的方法(我没有尝试过): 1.工程右键-properties->java build path 2.在java build path的librari

The type java.lang.reflect.AnnotatedElement cannot be resolved. It is indirectly referenced from required .class files

问题原因 jdk版本的问题 解决方案 切换一下jdk就可以了 JDK 切换方式 原文地址:https://www.cnblogs.com/7q4w1e/p/10012798.html

maven构建spring报错org.springframework.core.NestedRuntimeException cannot be resolved.

Error:The type org.springframework.core.NestedRuntimeException cannot be resolved. It is indirectly referenced from required .class files Story:It is most common for developers to forget adding the jars to the classpath. I had apparently missed to ad