hibernate操作出现Concurrentmodificationexception异常
在一次代码中,遇到了Concurrentmodificationexception异常,使用场景如下,我在一个操作完成后,另一个线程会异步监听该操作完成事件,参考代码如下:
@Asynchronous
public void testEventReceiver(TestEvent TestEvent) {
getMessageFromDemo(TestEvent.getDemo());
}
随后操作获取到的demo对象进行遍历操作:
private void getMessageFromDemo.
原创
2020-10-31 09:51:52 ·
354 阅读 ·
0 评论