当前位置: 代码迷 >> J2EE >> spring+mybatis项目启动报错解决方案
  详细解决方案

spring+mybatis项目启动报错解决方案

热度:56   发布时间:2016-04-17 23:44:33.0
spring+mybatis项目启动报错
Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [config-mybatis.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error registering typeAlias for 'EduInfoVo'. Cause: java.lang.ClassNotFoundException: Cannot find class: com.digitalchina.citizenwebapp.eduinfo.vo.EduInfoVo
按异常提示是找不到EduInfoVo类但我路径配置的都是正确的
<typeAliases>
      <!-- vo define -->
        <typeAlias alias="EduInfoVo" type="com.digitalchina.citizenwebapp.eduinfo.vo.EduInfoVo" />
        <typeAlias alias="hashmap" type="java.util.HashMap" />
        <typeAlias alias="list"  type="java.util.List" />
        <typeAlias alias="String" type="java.lang.String" />
        <typeAlias alias="Integer" type="java.lang.Integer" />
   </typeAliases>
不知道哪里错了
------解决方案--------------------
没有部署成功吧,tomcat的webapps下面,去看看文件包中有没有这个class