例如:
多个insert和update操作,出现异常时,需要全部回滚
则在SpringBoot中,
对应方法上加上:
@Transactional(rollbackFor = Exception.class)