ZSDSJZS 2019-12-08 20:27 采纳率: 0%
浏览 396

用Idea从GitHub上导入项目,同事都能用,就我的新电脑启动不了其中一个Application,报的以下错误,求大神援助

12:21:30.904 [main] WARN

org.springframework.context.annotation.AnnotationConfigApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.wondersgroup.oms.springboot.starter.mybatis.JeesuiteMybatisConfiguration': Unsatisfied dependency expressed through field 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\workspace\oms\oms-upms\oms-upms-rpc-service\target\classes\com\wondersgroup\oms\upms\dao\mapper\UpmsOnlineLogMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [D:\workspace\oms\oms-upms\oms-upms-rpc-service\target\classes\com\wondersgroup\oms\upms\dao\mapper\UpmsOnlineLogMapper.xml]'. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'org.mybatis.caches.ehcache.LoggingEhcache'. Cause: java.lang.ClassNotFoundException: Cannot find class: org.mybatis.caches.ehcache.LoggingEhcache

在不改动项目的基础上,怎么搞定这个问题,我怎么都弄不明白,别人都在写代码了,我还启动不了,好急。。

  • 写回答

2条回答

  • 关注

    看起来是你的项目缺少依赖的jar包:
    Cannot find class: org.mybatis.caches.ehcache.LoggingEhcache
    试试引入这个依赖的jar包看看。
    ps:(发现很多人都是遇到问题张嘴就问,报错信息看都不看一眼的吗)

    评论

报告相同问题?

悬赏问题

  • ¥15 C++使用Gunplot
  • ¥15 这个电路是如何实现路灯控制器的,原理是什么,怎么求解灯亮起后熄灭的时间如图?
  • ¥15 matlab数字图像处理频率域滤波
  • ¥15 在abaqus做了二维正交切削模型,给刀具添加了超声振动条件后输出切削力为什么比普通切削增大这么多
  • ¥15 ELGamal和paillier计算效率谁快?
  • ¥15 file converter 转换格式失败 报错 Error marking filters as finished,如何解决?
  • ¥15 Arcgis相交分析无法绘制一个或多个图形
  • ¥15 关于#r语言#的问题:差异分析前数据准备,报错Error in data[, sampleName1] : subscript out of bounds请问怎么解决呀以下是全部代码:
  • ¥15 seatunnel-web使用SQL组件时候后台报错,无法找到表格
  • ¥15 fpga自动售货机数码管(相关搜索:数字时钟)