老规矩 先google了一下
脑海里貌似有印象,可还是忘了具体是为什么错....
好了,有了
[color=red]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错误.设置好默认值问题就可以解决了[/color]
我的问题是第一种,测试数据null 就是这种错误.... :arrow:
脑海里貌似有印象,可还是忘了具体是为什么错....
好了,有了
[color=red]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错误.设置好默认值问题就可以解决了[/color]
我的问题是第一种,测试数据null 就是这种错误.... :arrow:
本文探讨了使用Hibernate框架时出现的exceptionsettingpropertyvaluewithCGLIB错误,主要原因是数字字段从数据库中获取null值及boolean字段未设置默认值所导致。文章提供了具体的解决方法。

1655

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



