Spring - How to commit inside forEach

后端 未结 0 739
时光说笑
时光说笑 2021-02-06 04:04

I have the following code:

private void sendList(List myData) {

  myData.forEach(x -> {
    sendData(x);
  })

}

@Transactional
private void send         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题