This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.example; | |
| import org.postgresql.ds.PGSimpleDataSource; | |
| import org.springframework.batch.core.Job; | |
| import org.springframework.batch.core.JobExecution; | |
| import org.springframework.batch.core.JobParameters; | |
| import org.springframework.batch.core.Step; | |
| import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing; | |
| import org.springframework.batch.core.job.builder.JobBuilder; | |
| import org.springframework.batch.core.launch.JobExecutionNotRunningException; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.example; | |
| import org.springframework.batch.core.Job; | |
| import org.springframework.batch.core.JobParameters; | |
| import org.springframework.batch.core.Step; | |
| import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing; | |
| import org.springframework.batch.core.job.builder.FlowBuilder; | |
| import org.springframework.batch.core.job.builder.JobBuilder; | |
| import org.springframework.batch.core.job.flow.Flow; | |
| import org.springframework.batch.core.launch.JobLauncher; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.example; | |
| import org.springframework.batch.core.*; | |
| import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing; | |
| import org.springframework.batch.core.configuration.annotation.StepScope; | |
| import org.springframework.batch.core.job.builder.JobBuilder; | |
| import org.springframework.batch.core.launch.JobLauncher; | |
| import org.springframework.batch.core.partition.support.Partitioner; | |
| import org.springframework.batch.core.repository.JobRepository; | |
| import org.springframework.batch.core.step.builder.StepBuilder; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.demo; | |
| import org.springframework.batch.core.Job; | |
| import org.springframework.batch.core.Step; | |
| import org.springframework.batch.core.job.builder.JobBuilder; | |
| import org.springframework.batch.core.repository.JobRepository; | |
| import org.springframework.batch.core.step.builder.StepBuilder; | |
| import org.springframework.batch.item.*; | |
| import org.springframework.batch.item.support.IteratorItemReader; | |
| import org.springframework.context.annotation.Bean; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.demo; | |
| import org.springframework.context.support.ClassPathXmlApplicationContext; | |
| import org.springframework.retry.policy.SimpleRetryPolicy; | |
| public class DemoApplication { | |
| public static void main(String[] args) { | |
| ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("application-context.xml"); | |
| SimpleRetryPolicy bean = context.getBean(SimpleRetryPolicy.class); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.springframework.batch.core.ExitStatus; | |
| import org.springframework.batch.core.Job; | |
| import org.springframework.batch.core.JobParameters; | |
| import org.springframework.batch.core.Step; | |
| import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing; | |
| import org.springframework.batch.core.configuration.annotation.JobBuilderFactory; | |
| import org.springframework.batch.core.configuration.annotation.StepBuilderFactory; | |
| import org.springframework.batch.core.launch.JobLauncher; | |
| import org.springframework.batch.repeat.RepeatStatus; | |
| import org.springframework.beans.factory.annotation.Autowired; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.springframework.batch.sample; | |
| import org.springframework.batch.core.Job; | |
| import org.springframework.batch.core.JobParameters; | |
| import org.springframework.batch.core.JobParametersBuilder; | |
| import org.springframework.batch.core.Step; | |
| import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing; | |
| import org.springframework.batch.core.configuration.annotation.JobBuilderFactory; | |
| import org.springframework.batch.core.configuration.annotation.StepBuilderFactory; | |
| import org.springframework.batch.core.configuration.annotation.StepScope; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.springframework.batch.sample; | |
| import javax.sql.DataSource; | |
| import javax.xml.bind.annotation.XmlRootElement; | |
| import org.springframework.batch.core.Job; | |
| import org.springframework.batch.core.JobParameters; | |
| import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing; | |
| import org.springframework.batch.core.configuration.annotation.JobBuilderFactory; | |
| import org.springframework.batch.core.configuration.annotation.StepBuilderFactory; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.demo; | |
| import java.io.IOException; | |
| import java.nio.charset.StandardCharsets; | |
| import java.nio.file.Files; | |
| import java.nio.file.Path; | |
| import java.nio.file.Paths; | |
| import java.nio.file.StandardOpenOption; | |
| import java.time.Duration; | |
| import java.time.Instant; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Date; | |
| import org.apache.commons.beanutils.ConvertUtils; | |
| import org.apache.commons.beanutils.converters.DateConverter; | |
| import org.jeasy.props.annotations.SystemProperty; | |
| import org.junit.Before; | |
| import org.junit.Test; | |
| import static org.assertj.core.api.Assertions.assertThat; |
NewerOlder