报错:
Caused by: org.hibernate.MappingException: Could not determine type for: String, for columns: [org.hibernate.mapping.Column(FeeTime)]
解决方法:
type指的是hibernate中的类型,不是java中的String类型,必须小写,
上面是错误的.下面是正确的.
Caused by: org.hibernate.MappingException: Could not determine type for: String, for columns: [org.hibernate.mapping.Column(FeeTime)]
解决方法:
type指的是hibernate中的类型,不是java中的String类型,必须小写,
<property column="FeeTime" length="8" name="feeTime" not-null="true" type="String"/>
上面是错误的.下面是正确的.
<property column="FeeTime" length="8" name="feeTime" not-null="true" type="string"/>
本文解决了一个关于Hibernate MappingException的问题,具体错误为无法确定String类型的映射。问题在于配置文件中type属性的值应该使用小写的string而非大写的String。通过修正此设置,可以避免此异常。
5292

被折叠的 条评论
为什么被折叠?



