Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在不同的机器上有不同的休眠会话工厂来访问单个数据库实例,它在会话之间造成了破坏(给出过时的数据/抛出 Nullpointer 异常)。有什么办法可以解决这个问题,或者我只能为一个数据库实例设置一个休眠会话工厂。
当然,有几种方法可以处理这种破坏。
还有一些可能存在
戳进去终于找到解决办法,罪魁祸首是存储引擎InnoDB。