rollback rule 수정

master
mjkhan21 1 year ago
parent ed839dde63
commit 769298cd61

@ -40,7 +40,7 @@ public class TransactionConfig {
@Bean @Bean
public TransactionInterceptor txAdvice() { public TransactionInterceptor txAdvice() {
RuleBasedTransactionAttribute write = new RuleBasedTransactionAttribute(); RuleBasedTransactionAttribute write = new RuleBasedTransactionAttribute();
write.getRollbackRules().add(new RollbackRuleAttribute(Exception.class)); write.getRollbackRules().add(new RollbackRuleAttribute(Throwable.class));
Properties txAttrs = new Properties(); Properties txAttrs = new Properties();
txAttrs.setProperty("*", write.toString()); txAttrs.setProperty("*", write.toString());

Loading…
Cancel
Save