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