org.hibernate.PropertyAccessException: exception setting property value with CGLIB异常:
通常引起的原因是:实体类中的变量采用了int、float、long等基本数据类型,而查询的结果中,该字段的内容为空,则报该错误。
改正:将基本数据类型改为相应的引用类型即可。如:int-->Integer
org.hibernate.PropertyAccessException: exception setting property value with CGLIB异常:
通常引起的原因是:实体类中的变量采用了int、float、long等基本数据类型,而查询的结果中,该字段的内容为空,则报该错误。
改正:将基本数据类型改为相应的引用类型即可。如:int-->Integer