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个回答

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

liukuo1990
liukuo1990 感谢
接近 2 年之前 回复
weixin_38638370
weixin_38638370 感谢
大约 2 年之前 回复

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

参考:

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

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

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!