hash map db死锁

对象有一个set,hibernate save时拿hashmap依次遍历入库

会导致死锁,相互等待对方update行锁

原文地址:https://www.cnblogs.com/silyvin/p/14017959.html