当前位置 : 主页 > 编程语言 > c++ >

hibernate报错:Could not determine type for: String, for columns: [org.hibernate.mapping.Column(Fe

来源:互联网 收集:自由互联 发布时间:2021-07-03
问题: Could not determine type for: String, for columns: [org.hibernate.mapping.Column(FeeTime)] org.springframework.web.context.ContextLoaderListenerorg.springframework.beans.factory.BeanCreationException: Error creating bean with name '
问题: Could not determine type for: String, for columns: [org.hibernate.mapping.Column(FeeTime)]
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(FeeTime)]
........

解决方法:
    type指的是hibernate中的类型,不是java中的String类型,必须小写(string不能写成String)
 
上一篇:Oracle pl/sql
下一篇:SpringMVC中的拦截器
网友评论