首页 > spring+mybatis项目启动报错

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>

不知道哪里错了


标签中只留下

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

一项 看看是否报错

【热门文章】
【热门文章】