Caused by: org.hibernate.MappingException: Could not determine type for: String,
今天做了s2sh三大整合,出现了个问题,如下:严重: 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)]
Caused by: org.hibernate.MappingException: Could not determine type for: String, for columns: [org.hibernate.mapping.Column(firstname)]
出错的原因:是因为hbm.xml的配置属性不全,不能只写String,Integer,date
解决的方法是:你加上java.lang.String就可以了,另外的提醒是date要加上java.uitl.Date才不会报错;有进步一点点,哈哈