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
用了springframework包?
你的setter方法有没有?应该是你配置项里配置了,但是没setter方法。
spring 设置的读取类的路径错了