hibernate 中错误a different object with the same identifier value was already associated with the session

来源:互联网 发布:金融大数据发展趋势 编辑:程序博客网 时间:2024/04/30 05:57

在所执行函数中加入

getSession().clear();

即可解决问题

原创粉丝点击