异常处理PropertyAccessException: exception setting property value with CGLIB

2020-04-28 17:17:16,118 ERROR [STDERR] net.sf.hibernate.PropertyAccessException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of com.whir.ezoffice.vehicle.po.VehicleMaintainPO.setDriverId

这个异常经过百度发现是,数据库这个字段为空的原因,

最终解决思路,找到实体类VehicleMaintainPO,发现Driverid的类型是long类型,所以一直报这个错!

深刻理解了long和Long的区别了

猜你喜欢

转载自www.cnblogs.com/sjzxs/p/12795674.html