原文出自http://blog.csdn.net/justerdu/article/details/50893583
分析:数据是保存在缓存中而未提交到数据库中
解决办法:
在hibernate.cfg.xml里面加入
- <property name="connection.autocommit">true </property>
原文出自http://blog.csdn.net/justerdu/article/details/50893583
在hibernate.cfg.xml里面加入