Hibernate错误:无法确定String类型,针对列[org.hibernate.mapping.Column(Fe)],如何解决?
- 内容介绍
- 文章标签
- 相关推荐
本文共计136个文字,预计阅读时间需要1分钟。
问题:无法确定类型为 String,对于列:[org.hibernate.mapping.Column(FeeTime)]。
原因:在创建 Spring 容器时,无法为名为 FeeTime 的 bean 指定正确的类型。
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)
本文共计136个文字,预计阅读时间需要1分钟。
问题:无法确定类型为 String,对于列:[org.hibernate.mapping.Column(FeeTime)]。
原因:在创建 Spring 容器时,无法为名为 FeeTime 的 bean 指定正确的类型。
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)

![Hibernate错误:无法确定String类型,针对列[org.hibernate.mapping.Column(Fe)],如何解决?](/imgrand/FgkzXRKA.webp)