spring事务

spring事务_第1张图片
spring事务_第2张图片
spring事务控制的默认值

@Transactional(
            propagation = Propagation.REQUIRED,
            isolation = Isolation.DEFAULT,
            readOnly = false,
            rollbackFor = {
     
                    NullPointerException.class,  NotEnoughException.class
            }

你可能感兴趣的:(mysql,spring)