以上是一个用户保存的代码。
报如下错误:
A different object with the same identifier value was already associated with the session后来找到问题所在,去掉我选中的那句,就没问题了。。问题出在于UserInfo类被我实例化了两次,但是我两次的对象是不同名的。不懂问什么会报这个错。求大神讲解一下原理!!!!!