could not reassociate uninitialized transient collection



出现这个问题,可能是没有关闭上次对数据库的操作,马上又操作数据库。
所以关闭数据库就好。
比如:
ht.getSessionFactory().close();





.

猜你喜欢

转载自panyongzheng.iteye.com/blog/1113352