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个回答

用了springframework包?

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

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

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐