首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

Caused by: org.hibernate.MappingException: Could not determine type for: String

2012-10-28 
Caused by: org.hibernate.MappingException: Could not determine type for: String,今天做了s2sh三大整

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才不会报错;有进步一点点,哈哈

热点排行