qq_30968951
qq_30968951
采纳率33.3%
2016-05-03 13:11 阅读 1.1k

新手 spring 问题 请大家帮我一下

Error creating bean with name 'daoimpl' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Cannot resolve reference to bean 'hibtemp' while setting bean property 'ht'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibtemp' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: entity class not found: res_item

在配置过程中 出现的错误 是我没映射对 还是 什么问题?

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

2条回答 默认 最新

  • ShiLuoHeroKing ShiLuoHeroKing 2016-05-03 13:55

    配置文件中Bean的ID值必须和你的属性名一样,否则无法装配对应的属性

    点赞 评论 复制链接分享
  • jhfsdfs machineShunMing 2016-05-04 00:53

    最后一句,那个bean没有找到

    点赞 评论 复制链接分享

相关推荐