如何用myEclipse7整合struts2+hibernate+spring

来源:百度知道 编辑:UC知道 时间:2024/06/21 23:09:03
我现在想用myEclipse整合Struts2+Hibernate+Spring,配置好后,总是报严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not determine type for: String, for columns: [org.hibernate.mapping.Column(firstname)]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
种异常,不知道是否是jar包冲突,还是怎么回事。

这个是你的一个字段firstname设置有问题
Could not determine type for: String, for columns: [org.hibernate.mapping.Column(firstname)]
这句有哇

把你的applicationContext.xml文件发上来看看!