qq_30968951 2016-05-03 13:11 采纳率: 33.3%
浏览 1100

新手 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 2016-05-03 13:55
    关注

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

    评论

报告相同问题?

悬赏问题

  • ¥15 MATLAB怎么通过柱坐标变换画开口是圆形的旋转抛物面?
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题
  • ¥15 Visual Studio问题
  • ¥20 求一个html代码,有偿