Spring 之註解事務 @Transactional

spring 事務註解spring 默認遇到throw new RuntimeException("...");會回滾 須要捕獲的throw new Exception("...");不會回滾 // 指定回滾 @Transactional(rollbackFor=Exception.class)      public void methodName() {        // 不會回滾     
相關文章
相關標籤/搜索