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