exception setting property value with CGLIB 解决方法

来源:互联网 发布:cdma三级网络结构 编辑:程序博客网 时间:2024/06/06 08:23
 

先google了一下

1.exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of
又见这样的错误,原因是对于一些数字项由于从数据库里面取出的值为null

2.映射为bolean的字段,在建表时,如果没有设定字段的default值,会导致exception setting property value with CGLIB setter错误.设置好默认值问题就可以解决了

我的问题是第一种,测试数据null 就是这种错误....

 

解决方法:给新添加的空字段设置好默认值;
原创粉丝点击