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>

不知道哪里错了

阅读 14.2k
1 个回答

标签中只留下

<typeAlias alias="Integer" type="java.lang.Integer" />

一项 看看是否报错

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题