[Tutorial] Spring Batch

I tried the spring tutorial Creating a batch service.

Git clone in a suitable directory

$ git clone https://github.com/spring-guides/gs-batch-processing.git
$ mba-2:target #{myname}$ java -jar /Users/#{myname}/projects/gs-batch-processing/complete/target/batch-processing-0.0.1-SNAPSHOT.jar
.   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.2.2.RELEASE)

2020-08-10 21:19:13.517  INFO 50375 --- [           main] c.e.b.BatchProcessingApplication         : Starting BatchProcessingApplication v0.0.1-SNAPSHOT on mba-2 with PID 50375 (/Users/#{myname}/projects/gs-batch-processing/complete/target/batch-processing-0.0.1-SNAPSHOT.jar started by #{myname} in /Users/#{myname}/projects/gs-batch-processing/complete/target)
2020-08-10 21:19:13.520  INFO 50375 --- [           main] c.e.b.BatchProcessingApplication         : No active profile set, falling back to default profiles: default
2020-08-10 21:19:14.662  INFO 50375 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
2020-08-10 21:19:14.671  WARN 50375 --- [           main] com.zaxxer.hikari.util.DriverDataSource  : Registered driver with driverClassName=org.hsqldb.jdbcDriver was not found, trying direct instantiation.
2020-08-10 21:19:15.098  INFO 50375 --- [           main] com.zaxxer.hikari.pool.PoolBase          : HikariPool-1 - Driver does not support get/set network timeout for connections. (feature not supported)
2020-08-10 21:19:15.103  INFO 50375 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.
2020-08-10 21:19:15.430  INFO 50375 --- [           main] o.s.b.c.r.s.JobRepositoryFactoryBean     : No database type set, using meta data indicating: HSQL
2020-08-10 21:19:15.716  INFO 50375 --- [           main] o.s.b.c.l.support.SimpleJobLauncher      : No TaskExecutor has been set, defaulting to synchronous executor.
2020-08-10 21:19:15.825  INFO 50375 --- [           main] c.e.b.BatchProcessingApplication         : Started BatchProcessingApplication in 2.835 seconds (JVM running for 3.415)
2020-08-10 21:19:15.826  INFO 50375 --- [           main] o.s.b.a.b.JobLauncherCommandLineRunner   : Running default command line with: []
2020-08-10 21:19:15.912  INFO 50375 --- [           main] o.s.b.c.l.support.SimpleJobLauncher      : Job: [FlowJob: [name=importUserJob]] launched with the following parameters: [{run.id=1}]
2020-08-10 21:19:15.992  INFO 50375 --- [           main] o.s.batch.core.job.SimpleStepHandler     : Executing step: [step1]
2020-08-10 21:19:16.062  INFO 50375 --- [           main] c.e.batchprocessing.PersonItemProcessor  : Converting (firstName: Jill, lastName: Doe) into (firstName: JILL, lastName: DOE)
2020-08-10 21:19:16.062  INFO 50375 --- [           main] c.e.batchprocessing.PersonItemProcessor  : Converting (firstName: Joe, lastName: Doe) into (firstName: JOE, lastName: DOE)
2020-08-10 21:19:16.062  INFO 50375 --- [           main] c.e.batchprocessing.PersonItemProcessor  : Converting (firstName: Justin, lastName: Doe) into (firstName: JUSTIN, lastName: DOE)
2020-08-10 21:19:16.063  INFO 50375 --- [           main] c.e.batchprocessing.PersonItemProcessor  : Converting (firstName: Jane, lastName: Doe) into (firstName: JANE, lastName: DOE)
2020-08-10 21:19:16.063  INFO 50375 --- [           main] c.e.batchprocessing.PersonItemProcessor  : Converting (firstName: John, lastName: Doe) into (firstName: JOHN, lastName: DOE)
2020-08-10 21:19:16.074  INFO 50375 --- [           main] o.s.batch.core.step.AbstractStep         : Step: [step1] executed in 82ms
2020-08-10 21:19:16.080  INFO 50375 --- [           main] c.e.b.JobCompletionNotificationListener  : !!! JOB FINISHED! Time to verify the results
2020-08-10 21:19:16.083  INFO 50375 --- [           main] c.e.b.JobCompletionNotificationListener  : Found <firstName: JILL, lastName: DOE> in the database.
2020-08-10 21:19:16.083  INFO 50375 --- [           main] c.e.b.JobCompletionNotificationListener  : Found <firstName: JOE, lastName: DOE> in the database.
2020-08-10 21:19:16.083  INFO 50375 --- [           main] c.e.b.JobCompletionNotificationListener  : Found <firstName: JUSTIN, lastName: DOE> in the database.
2020-08-10 21:19:16.083  INFO 50375 --- [           main] c.e.b.JobCompletionNotificationListener  : Found <firstName: JANE, lastName: DOE> in the database.
2020-08-10 21:19:16.083  INFO 50375 --- [           main] c.e.b.JobCompletionNotificationListener  : Found <firstName: JOHN, lastName: DOE> in the database.
2020-08-10 21:19:16.088  INFO 50375 --- [           main] o.s.b.c.l.support.SimpleJobLauncher      : Job: [FlowJob: [name=importUserJob]] completed with the following parameters: [{run.id=1}] and the following status: [COMPLETED] in 107ms
2020-08-10 21:19:16.092  INFO 50375 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown initiated...
2020-08-10 21:19:16.102  INFO 50375 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown completed.

Recommended Posts

[Tutorial] Spring Batch
[I tried] Spring tutorial
I tried Spring Batch
Spring Batch job launch parameters
Spring Boot tutorial task schedule
Try the Spring WebFlux tutorial
Loop step in Spring Batch
Spring Boot Tutorial Using Spring Security Authentication
spring × docker
rails tutorial
Create a simple on-demand batch with Spring Batch
About Spring ③
rails tutorial
rails tutorial
rails tutorial
raila tutorial
Chef tutorial
Spring Java
rails tutorial
rails tutorial
rails tutorial
Spring Batch 4.1.x --Reference Documentation Read and translated
Put Spring Batch test method under spring-test transaction
Periodically update DB with Spring Batch and MyBatis
Summary of what I learned in Spring Batch
[Spring Batch] Output table data to CSV file