问答详情
源自:4-7 mybatis整合Spring编码

怎么解决啊?

Caused by: 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 'Seckill'.  Cause: java.lang.ClassNotFoundException: Cannot find class: Seckill

提问者:qq_MUSICBOY90_04067260 2017-04-28 17:08

个回答

  • 寒冷的高纬度
    2017-05-01 14:40:23

    使用全称org.seckill.entity.Seckill,或者在spring-dao中的sqlSessionFactory配置自动扫描entity包<property name="typeAliasesPackage" value="org.seckill.entity" />