SSH
BestbpF
在校大学生
展开
-
getHibernateFlushMode is not valid without active transaction;
HTTP Status 500 - getHibernateFlushMode is not valid without active transaction; nested exception is org.hibernate.HibernateException: getHibernateFlushMode is not valid without active transaction 如果原创 2017-07-28 11:05:39 · 461 阅读 · 0 评论 -
The given object has a null identifier:
在自己整合SSH做一个项目中的一个更新功能(使用到了hibernateTemplate的update方法) 在测试该功能时,出现了The given object has a null identifier错误 发现update方法是根据主键id修改的,而在修改页面提交表单时,表单中没有提交id,通过添加一个隐藏域完成原创 2017-08-07 13:08:45 · 717 阅读 · 1 评论
分享