今天使用Spring Cloud + Mybatis Plus3.x 搭建微服务项目时,提示如下错误信息:

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

解决思路:

1、 第一反应是缺失spring-tx-5.3.5.jar包,我检查项目了项目的maven 依赖发现该spring-tx-5.3.5.jar包存在,并且已经加载到我的项目依赖中:

pom.xml   Dependency Hierarchy 截图

项目maven 依赖jar 包截图

更新maven 项目依赖没有解决上述问题

2、第二本地maven 仓库环境问题导致jar 无法正常加载。

我查看了本地maven 仓库地址:C:\Users\zzg\.m2\repository\org\springframework\spring-tx\5.3.5

发现事务文件中多了一个奇怪的文件,忘记截图,这里就不粘贴出来了。

清空spring-tx\5.3.5 文件夹,重新更新maven 项目依赖,解决上述问题。

The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly referenced相关推荐

  1. 问题31 :The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly refe

    问题描述: 在学习Spring中JdbcTemplate时,出现了以下这个错误: The type org.springframework.dao.DataAccessException cannot ...

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

    今天将一个web项目导入Eclipse的时候,项目报错如下: The type javax.servlet.http.HttpServletRequest cannot be resolved. It ...

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

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

  4. spring4报错Caused by: java.lang.NoClassDefFoundError: org/springframework/dao/DataAccessException

    错误描述: Caused by: java.lang.NoClassDefFoundError: org/springframework/dao/DataAccessException 系统没有找到D ...

  5. eclipse中java文件报错:The type java.lang.Object cannot be resolved. It is indirectly referenced from r

    问题:The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class fi ...

  6. The type android.support.v4.view.ScrollingView cannot be resolved. It is indirectly referenced from

    前几天另一个项目使用RecyclerView控件,引用类库然后继承一切都很顺序 详细:http://www.cnblogs.com/freexiaoyu/p/5022602.html 今天打算将另一个 ...

  7. 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 ...

  8. The type java.lang.Object cannot be resolved It is indirectly referenced ... .

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

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

    使用eclipse 创建java工程写代码时报错:The type java.lang.Object cannot be resolved. It is indirectly referenced f ...

最新文章

  1. Daivik VM 和 JVM 的比较
  2. python 发布包_如何将自己的Python包发布到PyPI
  3. [转]SQL注入攻防入门详解
  4. 在多个游戏视图间切换环境准备
  5. [2017BUAA软工]结对项目:数独扩展
  6. Codeforces Round #459 (Div. 2) C 思维,贪心 D 记忆化dp
  7. linux操作系统进程间通信IPC之管道pipe及FIFO
  8. 编制一个c语言成绩记录簿_C语言基础知识点模拟试题
  9. hawq state 报错: the database is down, but Ambari shows all hawq services as being
  10. python坐标系不均匀_Python处理不平衡数据
  11. python基础之函数当中的装饰器
  12. PostgreSQL初学
  13. Keepfast 是前端一个性能分析工具
  14. 从Asp.net实现资源全球化和本地化
  15. 测绘的行业标准规范和国家标准全部可下载
  16. 【已解决】java.lang.IllegalStateException: Only fullscreen opaque activities can request orientation
  17. 【工具】1343- NVS —— js 实现的node版本管理工具
  18. openLayers6系列理论基础——Layer数据源source篇
  19. python姿态检测实现多人多姿态识别python行为识别openpose行为骨骼框架检测动作识别动作检测行为动作分类
  20. 【百问网7天物联网智能家居】训练营学习笔记(七)

热门文章

  1. 从城市场景语义分割数据集中划分出自动驾驶领域道路分割数据集类别中遇到的问题
  2. FPGA开发基本流程详解
  3. 二陈丸配什么吃不上火_什么样的人群不适合吃二陈丸?
  4. 基于springboot的高校办公室会议行政事务管理系统(mysql)-JAVA.VUE【数据库设计、论文、源码、开题报告】
  5. 解决高并发下Redis连接失败redis.clients.jedis.exceptions.JedisConnectionException Attempting to read from a bro
  6. 李青云老人的长寿秘诀【转】
  7. [附源码]计算机毕业设计4S店汽车售后服务管理系统Springboot程序
  8. 创意小发明:单片机制作电容电阻测量仪 (含C语言原源码,仿真文件与实物图)
  9. 梅科尔工作室—罗森—鸿蒙笔记4
  10. web前端-css边框(border)