qq_35759707
qq_35759707
采纳率0%
2016-08-11 11:04 阅读 1.7k

eclipse 报这种错误是什么原因导致的,求解答。谢谢

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuctionImplDao' defined in file [F:\xiangmu workspace\CGAuctionConsole\src\main\resources\config\spring\spring-commons.xml]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'superSqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [F:\xiangmu workspace\CGAuctionConsole\src\main\resources\config\spring\spring-commons.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.lang.RuntimeException: 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. artrade.auction.console.auction.pojo.Category'. Cause: java.lang.ClassNotFoundException: Cannot find class: com. artrade.auction.console.auction.pojo.Category

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

3条回答 默认 最新

  • ljheee ljheee 2016-08-11 12:26

    用了springframework包?

    点赞 评论 复制链接分享
  • qq_28945021 我就是喜欢我话多 2016-08-12 00:53

    你的setter方法有没有?应该是你配置项里配置了,但是没setter方法。

    点赞 评论 复制链接分享
  • sir_jym sir_jym 2016-08-12 11:22

    spring 设置的读取类的路径错了

    点赞 评论 复制链接分享

相关推荐