qq_24591631
2017-05-20 19:32 阅读 5.7k

mybatis-config.xml报错问题,求助!

错误信息如下:

[WARNING] Failed startup of context o.e.j.m.p.JettyWebAppContext@20b9d5d5{/test,file:///E:/workspace/FrameWorkTest/src/main/webapp/,UNAVAILABLE}{file:///E:/workspace/FrameWorkTest/src/main/webapp/}
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'actDao' defined in file [E:\workspace\FrameWorkTest\target\classes\com\cyhx\framework\receptacle\activiti\dao\ActDao.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [E:\workspace\FrameWorkTest\target\classes\config\spring-context.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [config/mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.lang.RuntimeException: mybatis dialect error.

实在没办法了,死活说我的mybatis-config.xml有问题,但我实在找不出问题,求助!!

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

3条回答 默认 最新

  • lz1990112709 lz6132 2017-07-27 07:09

    图片说明 初始化方言时出错,因为数据库类型不匹配,导致mybatis-config.xml引用的过滤器出错

    点赞 3 评论 复制链接分享
  • chenbaige legendCoder 2017-05-21 01:44

    是不是sqlSessionFactory的配置有问题,把你相关代码检查一下。

    点赞 评论 复制链接分享
  • dcxy0 Q544471255 2017-05-21 01:49

    把mybatis-config.xml贴出来看看啊,

    参考:

    http://ju.outofmemory.cn/entry/94633

    点赞 评论 复制链接分享

相关推荐