exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of...
原因:查詢結果中包含null的項 對于一些數字項包含null,定義該項時必須使用wrapper類型,而不能是primitive類型,例如使用Integer等,而不能是int否則會拋出exception!
解決:映射為int,double的字段,在建表時,某些int或者double字段的default 0,導致exception setting property value with CGLIB setter 這些字段出錯.這些字段最后都有默認值.設置好默認值問題就可以解決了。