这是java中的SSH三大框架中的整合时所出现的问题 跪求高手!!!!在线等!!!!谢谢!!!!!
Exceptioninthread"main"org.springframework.beans.factory.BeanCreationException:Cannot...
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") 展开
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") 展开
2个回答
展开全部
这 。。。。 数据库表的设置与 对象属性的设置有冲突吧。比如说数据库中id的排序策略 跟 程序中设置的不一样,数据库的编码跟程序中设置的不一样 之类的。我瞎猜的
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询