From 769298cd61c0c35a1ad53566cac8be7639eb296a Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Fri, 21 Jul 2023 13:13:56 +0900 Subject: [PATCH] =?UTF-8?q?rollback=20rule=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cokr/xit/foundation/boot/TransactionConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());