rollback rule 수정

master
mjkhan21 1 year ago
parent ed839dde63
commit 769298cd61

@ -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());

Loading…
Cancel
Save