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")
这是java中的SSH三大框架中的整合时所出现的问题 跪求高手!!!!在线等!!!!谢谢!!!!!
第1个回答 2014-05-31
这 。。。。 数据库表的设置与 对象属性的设置有冲突吧。比如说数据库中id的排序策略 跟 程序中设置的不一样,数据库的编码跟程序中设置的不一样 之类的。我瞎猜的
第2个回答 2014-05-31
注入失败 看看 ref 和 名称是否一致本回答被提问者采纳