springboot中事务提交后调用某个方法(修改或保存后查询等)
TransactionSynchronizationManager.registerSynchronization(new TransactionSynchronizationAdapter() {
@Override
public void afterCommit()
{
System.out.println("send email after transaction commit......
原创
2019-10-24 09:30:12 ·
3311 阅读 ·
2 评论