这是java中的SSH三大框架中的整合时所出现的问题 跪求高手!!!!在线等!!!!谢谢!!!!!

Exception in thread "main" org.springframework.beans.factory.BeanCreationException:
Cannot resolve reference to bean 'studentBiz' while setting bean property 'studentBiz'; nested exception is org.springframework.beans.factory.BeanCreationException: Cannot resolve reference to bean 'commonDao' while setting bean property 'commondao'; nested exception is org.springframework.beans.factory.BeanCreationException: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: invocation of init method failed; nested exception is org.hibernate.MappingException: Repeated column in mapping for entity: entity.Student column: id (should be mapped with insert="false" update="false")

第1个回答  2014-05-31
这 。。。。 数据库表的设置与 对象属性的设置有冲突吧。比如说数据库中id的排序策略 跟 程序中设置的不一样,数据库的编码跟程序中设置的不一样 之类的。我瞎猜的
第2个回答  2014-05-31
注入失败 看看 ref 和 名称是否一致本回答被提问者采纳

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网