fnzf14428547 2016-03-07 05:43 采纳率: 25%
浏览 9152
已采纳

一个错一上午还没解决mybatis配置文件出错

这是什么问题啊。困扰我一早上了,看提示是找不到这个文件,但是路径没错啊

`SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [resource/spring-mybatis.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [E:\srpingquartz-demo.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\Test Maven Webapp\WEB-INF\classes\com\fishoad\dao\UserMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'com.fishroad.vo.User'. Cause: java.lang.ClassNotFoundException: Cannot find class: com.fishroad.vo.User


  • 写回答

4条回答

  • 毕小宝 博客专家认证 2016-03-07 06:00
    关注

    建议吧这个配置文件贴出来看看。异常显示Could not resolve type alias 'com.fishroad.vo.User'.检查下这个类的全称是不是拼写正确呢?

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

悬赏问题

  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
  • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序