v5는 많은 것이 바뀌어서 test해보려는데 왜 Tasklet에 있는 System.out.println는 실행되지 않을까요??
자체해결입니당https://github.com/spring-projects/spring-batch/issues/4232EnableBatchProcessing is no longer required. I tried your sample with Spring Boot 3.0.0-RC2 (Spring Batch 5.0.0-RC2) by removing @EnableBatchProcessing and the sample works as expected.@Configuration public class HelloJobConfiguration{ @Bean public DataSource batchDataSource() { return new EmbeddedDatabaseBuilder().setType(EmbeddedDatabaseType.H2) .addScript("/org/springframework/batch/core/schema-h2.sql") .generateUniqueName(true).build(); } @Bean public JdbcTransactionManager batchTransactionManager(DataSource dataSource) { return new JdbcTransactionManager(dataSource); } @Bean public Job job(JobRepository jobRepository, JdbcTransactionManager transactionManager) { return new JobBuilder("job", jobRepository) .start(step(jobRepository, transactionManager)) .build(); } @Bean public Step step(JobRepository jobRepository, PlatformTransactionManager transactionManager) { return new StepBuilder("step", jobRepository) .tasklet((StepContribution contribution, ChunkContext chunkContext) -> { System.out.println("Hello, world!"); return RepeatStatus.FINISHED; }, transactionManager) .build(); }