@Transactional只能回滚RuntimeException和RuntimeException下面的子类抛出的异常 不能回滚Exception异常
如果需要回滚Exception异常,则建议使用@Transactional(rollbackFor = Exception.class)
@Transactional只能回滚RuntimeException和RuntimeException下面的子类抛出的异常 不能回滚Exception异常
如果需要回滚Exception异常,则建议使用@Transactional(rollbackFor = Exception.class)