Open
Description
private TransactionAttribute getTransactionAttribute() {
RuleBasedTransactionAttribute attribute = new RuleBasedTransactionAttribute();
attribute.setPropagationBehavior(TransactionDefinition.PROPAGATION_NOT_SUPPORTED);
return attribute;
}
@slf4j
@component
public class XxxTasklet implements Tasklet {
@Override
public RepeatStatus execute(StepContribution stepContribution, ChunkContext chunkContext) throws Exception {
try {
throw new Exception("test");
} catch (Exception e) {
log.error("test error");
throw new Exception("test error");
}
}
}
This is my code