diff --git a/src/main/java/cokr/xit/foundation/boot/TransactionConfig.java b/src/main/java/cokr/xit/foundation/boot/TransactionConfig.java index 8cc8ca0..a1ee83a 100644 --- a/src/main/java/cokr/xit/foundation/boot/TransactionConfig.java +++ b/src/main/java/cokr/xit/foundation/boot/TransactionConfig.java @@ -40,7 +40,7 @@ public class TransactionConfig { @Bean public TransactionInterceptor txAdvice() { RuleBasedTransactionAttribute write = new RuleBasedTransactionAttribute(); - write.getRollbackRules().add(new RollbackRuleAttribute(Exception.class)); + write.getRollbackRules().add(new RollbackRuleAttribute(Throwable.class)); Properties txAttrs = new Properties(); txAttrs.setProperty("*", write.toString());