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