错误:attempt to create saveOrUpdate event with null entity
数据能获取说明hibernate配置没有问题,先关掉事务再找bug,注释掉写入代码,输出前台接收的数据。
错误:Exception occurred during processing request: null
再输出一条验证对象是不是空的,的确是空
检测发现getModel()有从前台接收数据,最后发现对象没有new
解决!
打开事务注释,恢复写入代码,测试成功写入
错误:attempt to create saveOrUpdate event with null entity
数据能获取说明hibernate配置没有问题,先关掉事务再找bug,注释掉写入代码,输出前台接收的数据。
错误:Exception occurred during processing request: null
再输出一条验证对象是不是空的,的确是空
检测发现getModel()有从前台接收数据,最后发现对象没有new
解决!
打开事务注释,恢复写入代码,测试成功写入