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 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3